Exemplo n.º 1
0
        public IActionResult GetAllReviews()
        {
            try
            {
                IEnumerable <ReviewDto> reviews = _reviewLogic.GetAllOpenReviews();

                return(Ok(reviews));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, "Internal server error"));
            }
        }