public HttpResponseMessage UpdatePriceMarginTier(UpdatePriceMarginTierRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            SuccessResponse response = new SuccessResponse();

            PriceMarginTiersService.UpdatePriceMarginTier(model);
            return(Request.CreateResponse(response));
        }
        public HttpResponseMessage AddPriceMarginTier(AddPriceMarginTierRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

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

            response.Item = PriceMarginTiersService.UpdatePriceMarginTier(model);
            return(Request.CreateResponse(response));
        }