public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } UserModel = await _userAppService.GetUserForEditAsync(id.Value); if (UserModel == null) { return(NotFound()); } return(Page()); }