public override async Task <Services.GetMovieListResponse> GetMovieList( Services.GetMovieListRequest request, ServerCallContext context) { var options = _mapper.Map <MovieOptions>(request.Options); var movies = await _movieDao .GetMovies(options) .ConfigureAwait(true) ?? new PagedCollection <Movie>(); var response = new Services.GetMovieListResponse { PageInfo = _mapper.Map <Services.PageInfo>(movies) }; response.Movies.AddRange(_mapper.Map <List <Services.Movie> >(movies)); return(response); }