public HttpResponseMessage GetAllRatings() { List <Rating> ratings = QsDataRepository.GetAllRatings(); return(Request.CreateResponse(!ratings.Any() ? HttpStatusCode.NotFound : HttpStatusCode.OK, ratings)); }