Пример #1
0
        public ActionResult GetAssets([DataSourceRequest] DataSourceRequest request, string catalogId)
        {
            CatalogModel.BindDataSourceRequest(Request, ref request);

            var response = CatalogModel.GetCatalogItems(request, catalogId);
            var ret      = new
            {
                Data = response.Items,
                response.Total
            };

            return(Json(ret, JsonRequestBehavior.AllowGet));
        }