예제 #1
0
        public async Task <ActionResult> Delete(int id)
        {
            var entity = await service.DeleteAsync(id);

            if (entity == null)
            {
                return(NotFound());
            }

            return(NoContent());
        }
예제 #2
0
 public async Task <HttpResponseMessage> Delete(int id)
 {
     return(await _clientFactoryService.DeleteAsync(id));
 }
 public async Task DeleteAsync(int id)
 {
     await service
     .DeleteAsync(id);
 }