public ActionResult Index() { FundRequestIndexModel model = new FundRequestIndexModel(); FundRequestIndexModel m = new FundRequestIndexModel() { ClientVisits = new List <ClientVisitFundInfoModel>(), SearchCriteriaModel = new ClientVisitSearchCriteriaModel() { IsActualInVisitGroup = true } }; return(View(m)); }
public ActionResult Index(FundRequestIndexModel model) { ClientVisitSearchCriteria criteria = model.SearchCriteriaModel.GetClientSearchCriteria(); DataPage <ClientVisitInfo> visits = clientBusinessLogic.ClientVisit_Find( criteria, new List <SortCriteria <ClientVisitSortField> >(), new PageRequest() { PageNumber = 1, PageSize = 1000 }); FundRequestIndexModel m = new FundRequestIndexModel() { ClientVisits = visits.Data .Select(item => new ClientVisitFundInfoModel(item)).OrderBy(item => item.Lastname).ToList(), SearchCriteriaModel = new ClientVisitSearchCriteriaModel( criteria) }; return(View(m)); }