public IActionResult Delete(Guid id) { try { _storage.Delete(id); return(NoContent()); } catch (KeyNotFoundException) { return(NotFound()); } }
public IActionResult Delete(Guid id) { try { _storage.Delete(id); return(NoContent()); } catch (ArgumentNullException) { return(BadRequest()); } catch (ArgumentException) { return(NotFound()); } }