public HttpResponseMessage UpdateRatingById(Rating rating) { var result = QsDataRepository.UpdateRatingById(rating); return(Request.CreateResponse(result ? HttpStatusCode.OK : HttpStatusCode.NotFound, result)); }