public async Task <IActionResult> OnGetAsync() { var isAuthorize = User.IsInRole(Constants.AdministratorRole) || User.IsInRole(Constants.ManagerRole); if (!isAuthorize) { return(new ChallengeResult()); } DateTo = DateTime.Today; DateFrom = DateTo.AddYears(-1); IncomeStatement = await GetIncomeStatementsListAsync(); return(Page()); }