public async Task <IHttpActionResult> DeleteInvoice(int invoiceId) { var(IsSuccess, ErrorMessage) = await invoicesProvider.DeleteInvoice(invoiceId); if (IsSuccess) { return(Ok()); } return(BadRequest(ErrorMessage)); }
public Task DeleteInvoice(long id) { return(_invoicesProvider.DeleteInvoice(id)); }