public void Insert(Movie item) { using (var context = new Context()) { context.Movies.Add(item); } }
public IEnumerable<Movie> GetAll() { using (var context = new Context()) { return context.Movies.ToList(); } }