public ActionResult ManageCriteria(HealthPlanCallQueueListModelFilter filter = null, int pageNumber = 1) { int totalRecords; if (filter != null) { filter.ShowAssignmentMetaData = true; } var model = _healthPlanCallQueueCriteriaService.GetHealthPlanCallQueueList(pageNumber, _pageSize, filter, out totalRecords) ?? new HealthPlanCallQueueListModel(); model.Filter = filter; var currentAction = ControllerContext.RouteData.Values["action"].ToString(); Func <int, string> urlFunc = pn => Url.Action(currentAction, new { pageNumber = pn, filter.HealthPlanId, filter.CallQueueId, }); model.PagingModel = new PagingModel(pageNumber, _pageSize, totalRecords, urlFunc); return(View(model)); }
public ActionResult CallQueueEstimatedCustomerReport(HealthPlanCallQueueListModelFilter filter = null, int pageNumber = 1) { int totalRecords; filter = filter ?? new HealthPlanCallQueueListModelFilter(); filter.ShowMailRoundCriteria = true; ListModelBase <HealthPlanCallQueueViewModel, HealthPlanCallQueueListModelFilter> model = null; totalRecords = 0; if (filter.HealthPlanId > 0) { model = _callQueueCriteriaService.GetHealthPlanCallQueueList(pageNumber, _pageSize, filter, out totalRecords); } model = model ?? new HealthPlanCallQueueListModel(); model.Filter = filter; var currentAction = ControllerContext.RouteData.Values["action"].ToString(); Func <int, string> urlFunc = pn => Url.Action(currentAction, new { pageNumber = pn, filter.HealthPlanId, filter.CallQueueId, }); model.PagingModel = new PagingModel(pageNumber, _pageSize, totalRecords, urlFunc); return(View(model)); }