Example #1
0
        public ActionResult TechnicalLimitedScreening(TechnicalLimitedScreeningCustomerListModelFilter filter = null, int pageNumber = 1)
        {
            int totalRecords;

            if (filter == null)
            {
                filter = new TechnicalLimitedScreeningCustomerListModelFilter();
            }
            var model = _testResultService.GetCustomerwithTechnicallimitedScreening(pageNumber, _pageSize, filter, out totalRecords);

            if (model == null)
            {
                model = new TechnicalLimitedScreeningCustomerListModel();
            }
            model.Filter = filter;

            var currentAction          = ControllerContext.RouteData.Values["action"].ToString();
            Func <int, string> urlFunc = pn => Url.Action(currentAction, new { pageNumber = pn, filter.CustomerName, filter.Test, filter.FromDate, filter.ToDate, filter.ResultState });

            model.PagingModel = new PagingModel(pageNumber, _pageSize, (int)totalRecords, urlFunc);
            return(View(model));
        }