Example #1
0
        public IActionResult getReview(int reviewId)
        {
            if (!_reviewRepository.ReviewExist(reviewId))
            {
                return(NotFound());
            }
            var reviews = _reviewRepository.GetReview(reviewId);

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            return(Ok(reviews));
        }