public async Task <IHttpActionResult> Delete(int id) { try { await Repository.DeleteAsync(id); } catch (InvalidOperationException) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(Ok()); }
public async Task <IHttpActionResult> Delete(int id) { try { await Repository.DeleteAsync(id); } catch (InvalidOperationException) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(Ok()); }