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