public JsonResult LoadData(int page, int pageSize = 3)
        {
            var model = _Consigne_maintenanceAppService.GetAll();

            var model1 = _DocumentAppService.GetAll();

            model1 = model1.OrderBy(x => x.libelle);


            int totalRow = model.Count();

            model = model.OrderByDescending(x => x.Code_Consigne)
                    .Skip((page - 1) * pageSize)
                    .Take(pageSize);


            return(Json(new
            {
                data = model,
                total = totalRow,
                status = true,
                droplist = model1
            }, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public ActionResult GetAll()
        {
            var model = _DocumentAppService.GetAll();

            return(PartialView("GetAll", model));
        }