Example #1
0
 public void Remove(int id)
 {
     using (manager = new MovieManager())
     {
         var movie = manager.GetById(id);
         if (movie != null)
         {
             Cart.Items.RemoveAll(x => x.Id == id);
         }
     }
 }
Example #2
0
 public void Add(int id)
 {
     using (manager = new MovieManager())
     {
         var movie = manager.GetById(id);
         if (movie != null)
         {
             Cart.Items.Add(movie);
         }
     }
 }