public IActionResult DeleteConfirmed(int id) { var client = new CustomerService.CustomerServiceClient(channel); Empty response = client.Delete(new CustomerId() { Id = id }); return(RedirectToAction(nameof(Index))); }
public void Delete(int?id) { _serviceGrpcCustomer.Delete(new Request { Id = id.Value }); }