public HttpResponseMessage SaveRatings(Rating rating) { var result = QsDataRepository.SaveRating(rating); return(Request.CreateResponse(!result ? HttpStatusCode.OK : HttpStatusCode.ExpectationFailed)); }