Пример #1
0
        public JsonResult BookGridDataRequested()
        {
            try
             {
                 var gridModel = new ReservateBookMetaJqGridModel();
                 SetUpBookGrid(gridModel.BookJqGridModelGrid);
                 var books = _literatureService.GetUserBooksMetas(CurrentUserId).AsQueryable();

                 return gridModel.BookJqGridModelGrid.DataBind(books);
             }
             catch (Exception ex)
             {
                 return Json(new { }, JsonRequestBehavior.AllowGet);
             }
        }
Пример #2
0
 public ActionResult Index()
 {
     var gridModel = new ReservateBookMetaJqGridModel();
      SetUpBookGrid(gridModel.BookJqGridModelGrid);
      return View(gridModel);
 }