Пример #1
0
 public MedicineListModel(IPagedList<MedicineDto> list, MedicineListFiltersModel filters)
 {
     List = list;
     Filters = filters;
 }
Пример #2
0
 public MedicineListModel(IPagedList <MedicineDto> list, MedicineListFiltersModel filters)
 {
     List    = list;
     Filters = filters;
 }
Пример #3
0
        public ActionResult Index(MedicineListFiltersModel filters)
        {
            int pageTotal;

            var medicines = _medicineService.GetAll("CreatedDate", "DESC", filters.Criteria, filters.Page, DefaultPageSize, out pageTotal);

            var pagedList = new StaticPagedList<MedicineDto>(medicines, filters.Page, DefaultPageSize, pageTotal);

            var listModel = new MedicineListModel(pagedList, filters);

            return View(listModel);
        }