예제 #1
0
        public HttpResponseMessage UpdateFuelOrderCustomerPricing(UpdateFuelOrderCustomerPricingRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            SuccessResponse response = new SuccessResponse();

            FuelOrderCustomerPricingsService.UpdateFuelOrderCustomerPricing(model);
            return(Request.CreateResponse(response));
        }
예제 #2
0
        public HttpResponseMessage AddFuelOrderCustomerPricing(AddFuelOrderCustomerPricingRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            ItemResponse <int> response = new ItemResponse <int>();

            response.Item = FuelOrderCustomerPricingsService.UpdateFuelOrderCustomerPricing(model);
            return(Request.CreateResponse(response));
        }