Example #1
0
        public async Task <IActionResult> GetReviewById(Guid id)
        {
            try
            {
                if (id != null)
                {
                    dynamic reviewById = await _review.GetReviewsById(id);

                    if (reviewById.Success == false)
                    {
                        return(NotFound(reviewById));
                    }

                    return(Ok(reviewById));
                }

                return(BadRequest("Review Id cannot be null"));
            }
            catch (Exception ex)
            {
                throw;
            }
        }