public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } Employee = (await EmployeeApiClient.GetEmployees()).SingleOrDefault(e => e.EmployeeNumber == id); if (Employee == null) { return(NotFound()); } return(Page()); }
public async Task OnGetAsync() { Employees = await EmployeeApiClient.GetEmployees(); }