Ejemplo n.º 1
0
        public JsonResult CompanyRead(KendoUiGridParam request)
        {
            var companyViewModels = GetCompanyDataList().AsQueryable();
            var models            = KendoUiHelper.ParseGridData <CompanyViewModel>(companyViewModels, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult UserRead(KendoUiGridParam request)
        {
            var userViewModels = GetUserDataList().AsQueryable();
            var models         = KendoUiHelper.ParseGridData <UserViewModel>(userViewModels, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public JsonResult ApplicationRead(KendoUiGridParam request)
        {
            var applicationViewModels = GetApplicationDataList().AsQueryable();
            var models = KendoUiHelper.ParseGridData <ApplicationViewModel>(applicationViewModels, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 4
0
        public JsonResult RightRead(KendoUiGridParam request)
        {
            var rightViewModels = GetRightDataList().AsQueryable();
            var models          = KendoUiHelper.ParseGridData <RightViewModel>(rightViewModels, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
        }
        public JsonResult CategoryReadWithParamForFilter(KendoGridPost request)
        {
            var categories = GetCategories().AsQueryable();
            //List<Category> models = GetCategories();

            //var models = GetCategories();
            var models = KendoUiHelper.ParseGridData <Category>(categories, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
            //return Json(models);
        }
        public JsonResult ProductReadWithParam(KendoGridPost request)
        {
            var products = GetProducts().AsQueryable();
            //List<Product> models = GetProducts();

            //var models = GetProducts();
            var models = KendoUiHelper.ParseGridData <Product>(products, request);

            return(Json(models, JsonRequestBehavior.AllowGet));
            //return Json(models);
        }