public HttpResponseMessage GetInvoice(int id) { Invoice invoice = _invoiceManagement.GetInvoice(id); if (invoice != null) { return(Request.CreateResponse(HttpStatusCode.OK, invoice)); } else { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } }
public HttpResponseMessage GetInvoice(int id) { return(Request.CreateResponse(HttpStatusCode.OK, _invoiceManagement.GetInvoice(id))); }