private async Task <OppFinderSearchViewModel> AddProposedViewModelValues(OppFinderSearchViewModel viewModel) { viewModel.SearchTerm = _oppFinderSession.SearchTerm; viewModel.ProposedStandardsPerPage = _oppFinderSession.ProposedStandardsPerPage; viewModel.ProposedSortColumn = _oppFinderSession.ProposedSortColumn; viewModel.ProposedSortDirection = _oppFinderSession.ProposedSortDirection; viewModel.ProposedPageIndex = _oppFinderSession.ProposedPageIndex; viewModel.ProposedStandards = await GetPageProposedStandards(viewModel.SearchTerm, viewModel.ProposedPageIndex); return(viewModel); }
private async Task <OppFinderSearchViewModel> MapViewModelFromSession() { var viewModel = new OppFinderSearchViewModel(); viewModel = await AddApprovedViewModelValues(viewModel); viewModel = await AddInDevelopmentViewModelValues(viewModel); viewModel = await AddProposedViewModelValues(viewModel); viewModel.ShowFiltersViewModel = await AddFilterViewModelValues(new OppFinderShowFiltersViewModel()); return(viewModel); }
private async Task <OppFinderSearchViewModel> AddInDevelopmentViewModelValues(OppFinderSearchViewModel viewModel) { viewModel.SearchTerm = _oppFinderSession.SearchTerm; viewModel.InDevelopmentStandardsPerPage = _oppFinderSession.InDevelopmentStandardsPerPage; viewModel.InDevelopmentSortColumn = _oppFinderSession.InDevelopmentSortColumn; viewModel.InDevelopmentSortDirection = _oppFinderSession.InDevelopmentSortDirection; viewModel.InDevelopmentPageIndex = _oppFinderSession.InDevelopmentPageIndex; viewModel.InDevelopmentStandards = await GetPageInDevelopmentStandards(viewModel.SearchTerm, viewModel.InDevelopmentPageIndex); return(viewModel); }