public IActionResult DeleteConfirmed(int id) { var client = new EmployeeService.EmployeeServiceClient(channel); Empty response = client.Delete(new EmployeeId() { Id = id }); return(RedirectToAction(nameof(Index))); }
public IActionResult DeleteConfirmed(int id) { var client = new EmployeeService.EmployeeServiceClient(channel); Empty response = client.Delete(new EmployeeId() { Id = id }); return(RedirectToAction(nameof(Index))); }