示例#1
0
 public IEnumerable <Movie> Get()
 {
     return(movieRepositoryService.Queryable().Include(x => x.Category).Include(x => x.Director));
 }
示例#2
0
        public IActionResult Index()
        {
            var latestMovies = movieRepositoryService.Queryable().OrderByDescending(x => x.CreatedDate).Take(6).ToList();

            return(View(latestMovies));
        }