public HttpResponseMessage SaveDiscounts(Discount discount) { var result = QsDataRepository.SaveDiscounts(discount); return(Request.CreateResponse(!result ? HttpStatusCode.OK : HttpStatusCode.ExpectationFailed)); }