Пример #1
0
        public async Task <IActionResult> GetAll()
        {
            var reviews = await _reviewsRepository.GetAllAsync();

            var reviewsToReturn = _mapper.Map <List <ReviewDto> >(reviews);

            return(Ok(reviewsToReturn));
        }