Пример #1
0
        public IEnumerable <ReviewDto> GetReviewsByUser(string username)
        {
            var entities = _reviewsRepository.GetReviewsByUser(username);
            var dtos     = entities.Select(x => Mapper.Map <ReviewDto>(x));

            return(dtos);
        }