Beispiel #1
0
        public MovieDto GetCurrentMovie(int movieid)
        {
            var movie = uow.MovieRepository.GetById(movieid);

            return(mapper.CreateMap(movie));
        }
Beispiel #2
0
 public IEnumerable <UserCommentDto> GetAllMovieComments(int movieID)
 {
     return(uow.CommentsRepository.GetAllMovieComments(movieID).Select(comment => mapper.CreateMap(comment)));
 }