Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 public HttpResponseMessage GetInvoice(int id)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, _invoiceManagement.GetInvoice(id)));
 }