public async Task <ActionResult> GetEmployeeDelete(int id = 0) { var employee = await client.FindByIdAsync(id, cts.Token).ConfigureAwait(false); return(PartialView("_EmployeeDelete", employee)); }
public async Task <ActionResult> Details(int id) { var emp = await client.FindByIdAsync(id, cts.Token).ConfigureAwait(false); return(View(emp)); }