// DELETE api/values/5 public void Delete(int id) { try { repository.Delete(id); } catch (AggregateException ex) { throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, ex.Message)); } }
public Task <AgreementResponse> Delete(Guid id) => _agreementRepository.Delete(id);