Пример #1
0
        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());
        }
Пример #2
0
 public async Task OnGetAsync()
 {
     Employees = await EmployeeApiClient.GetEmployees();
 }