public async Task <ActionResult <int> > Delete(Guid id) { try { int result = await service.DeleteAsync(id); return(Ok(result)); } catch (ItemNotFoundException) { return(NotFound()); } }
public async Task <ActionResult <int> > Delete(Guid id) { try { int result = await service.DeleteAsync(id); return(Ok(result)); } catch (ItemNotFoundException) { return(NotFound()); } }