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

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

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