using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Kendo.Mvc.UI;
using Kendo.Mvc.Extensions;
using GridSelectionExample.Models;

namespace GridSelectionExample.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Products_Read([DataSourceRequest] DataSourceRequest request)
        {
            NorthwindEntities db = new NorthwindEntities();
            return Json(db.Products.ToDataSourceResult(request));
        }
    }
}
