Exemple #1
0
        public List <Movie> GetMovies()
        {
            var dbContext = new MovieDataContext();

            return(dbContext.Movies.ToList());
        }
Exemple #2
0
        public Movie GetMovie(int id)
        {
            var dbContext = new MovieDataContext();

            return(dbContext.Movies.FirstOrDefault(m => m.id == id));
        }