public VaccineListModel(IPagedList <VaccineDto> list, VaccineListFiltersModel filters)
 {
     List    = list;
     Filters = filters;
 }
 public VaccineListModel(IPagedList<VaccineDto> list, VaccineListFiltersModel filters)
 {
     List = list;
     Filters = filters;
 }
        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);
        }