Beispiel #1
0
        public IActionResult GetReviewOfBook(int bookId)
        {
            var reviews = _reviewRepository.GetReviewOfBook(bookId);

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