public async Task <IActionResult> OnGet(long id) { var x = await ProjectsService.FindAsync(id); if (x != null) { return(Page()); } return(RedirectToPage("/Error")); }