Example #1
0
        public async Task <IActionResult> GetAllReviews()
        {
            try
            {
                dynamic data = await _review.GetAllReview();

                if (data.Success == false)
                {
                    return(NotFound(data));
                }
                return(Ok(data));
            }
            catch (Exception ex)
            {
                throw;
            }
        }