Exemple #1
0
 public PagedList <MovieJMDBApi> GetAllSavedMovies(long currentUserId, ResourceParameters usersResourceParameters)
 {
     return(SavedMoviesManager.GetAllMovies(currentUserId, usersResourceParameters) as PagedList <MovieJMDBApi>);
 }
Exemple #2
0
        public List <SavedMovieModel> GetAllSavedMovies(long currentUserId)
        {
            List <MovieJMDBApi> movies = SavedMoviesManager.GetAllMovies(currentUserId) as List <MovieJMDBApi>;

            return(movies.Select(a => Mapper.Mapper.Map(a, currentUserId)).ToList());
        }