Beispiel #1
0
        public async Task <IActionResult> ChangePageViewOrganisationApprovedStandardsPartial(string organisationId, int pageIndex)
        {
            _controllerSession.Register_ApprovedStandards.PageIndex = pageIndex;
            var viewModel = new OrganisationApprovedStandardsViewModel
            {
                OrganisationId      = organisationId,
                PaginationViewModel = await GatherOrganisationStandards(organisationId, true)
            };

            return(PartialView("_OrganisationStandardsPartial", viewModel));
        }
Beispiel #2
0
        public async Task <IActionResult> SortViewOrganisationApprovedStandardsPartial(string organisationId, string sortColumn, string sortDirection)
        {
            UpdateSortDirection(sortColumn, sortDirection, _controllerSession.Register_ApprovedStandards);
            _controllerSession.Register_ApprovedStandards.PageIndex = 1;
            var viewModel = new OrganisationApprovedStandardsViewModel
            {
                OrganisationId      = organisationId,
                PaginationViewModel = await GatherOrganisationStandards(organisationId, true)
            };

            return(PartialView("_OrganisationStandardsPartial", viewModel));
        }