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

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

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

            var listModel = new VaccineListModel(pagedList, filters);

            return View(listModel);
        }