public async Task <AllReviewsOfFilm> GetReview(int id, int skipIndex, int takeIndex) { AllReviewsOfFilm reviewsOfFilm = new AllReviewsOfFilm(); reviewsOfFilm.Reviews = mapper.Map <List <InfoViewReviews> > (await reviewsRepository.GetAllReviewsOfFilm(id, skipIndex, takeIndex)); reviewsOfFilm.CountOfReviews = await reviewsRepository.GetCountReviewsOfFilm(id); return(reviewsOfFilm); }