public List <Movie> GetMovies() { var dbContext = new MovieDataContext(); return(dbContext.Movies.ToList()); }
public Movie GetMovie(int id) { var dbContext = new MovieDataContext(); return(dbContext.Movies.FirstOrDefault(m => m.id == id)); }