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