public async Task <ActionResult> Delete(int id) { var entity = await service.DeleteAsync(id); if (entity == null) { return(NotFound()); } return(NoContent()); }
public async Task <HttpResponseMessage> Delete(int id) { return(await _clientFactoryService.DeleteAsync(id)); }
public async Task DeleteAsync(int id) { await service .DeleteAsync(id); }