Beispiel #1
0
        public HttpResponseMessage GetReview(long id)
        {
            ReviewPersistenceService ReviewPersistenceService = new ReviewPersistenceService();
            Review Review = ReviewPersistenceService.GetReview(id);
            HttpResponseMessage response;

            if (Review == null)
            {
                response = Request.CreateResponse(HttpStatusCode.NotFound, "Review not found.");
                return(response);
            }
            return(Request.CreateResponse(HttpStatusCode.OK, Review));
        }