public async Task <JsonResult> GetPageRoutes() { var user = await _userManager.GetUserAsync(HttpContext.User); var pageRoutes = _pageRouteVersionRepository.GetStaticPages(); pageRoutes = _iBEUsersPrivilegesService.FilterStaticPages(pageRoutes, user.Id); return(Json(new { data = pageRoutes })); }