public HttpResponseMessage DeleteDiscount(Guid id) { var result = QsDataRepository.DeleteDiscount(id); return(Request.CreateResponse(result ? HttpStatusCode.OK : HttpStatusCode.NotFound, result)); }