public HttpResponseMessage GetInvoices(int fuelOrderId) { ItemsResponse <FuelOrderInvoices> response = new ItemsResponse <FuelOrderInvoices>(); response.Items = FuelOrderInvoicesService.GetInvoicesByFuelOrder(fuelOrderId); return(Request.CreateResponse(response)); }
public HttpResponseMessage GetInvoices(UpdateFuelOrderRequest model) { if (!CheckAccount(model)) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, badResponse)); } ItemsResponse <FuelOrderInvoices> response = new ItemsResponse <FuelOrderInvoices>(); response.Items = FuelOrderInvoicesService.GetInvoicesByFuelOrder(model.Id); return(Request.CreateResponse(response)); }