public MovieDto GetCurrentMovie(int movieid) { var movie = uow.MovieRepository.GetById(movieid); return(mapper.CreateMap(movie)); }
public IEnumerable <UserCommentDto> GetAllMovieComments(int movieID) { return(uow.CommentsRepository.GetAllMovieComments(movieID).Select(comment => mapper.CreateMap(comment))); }