public IActionResult Divisions(int pageNumber) { User currentUser = context.Users.FirstOrDefault(n => n.UserName == User.Identity.Name); OrganizationViewModel orgViewModel = CurrentOrganization; OrganizationRepository organizationRepository = new OrganizationRepository(context, viewsInfo, resManager, HttpContext); organizationRepository.SetViewInfo(currentUser.Id, DIVISIONS, pageNumber); organizationRepository.AttachDivisions(orgViewModel); return(View($"{ORG_VIEWS_REL_PATH}{ORGANIZATION}.cshtml", orgViewModel)); }