Пример #1
0
 public virtual void RemoveLine(MovieModel m) =>
 Lines.RemoveAll(x => x.Movie.MovieId == m.MovieId);
Пример #2
0
 public virtual void AddItem(MovieModel movie)
 {
     CartLine line = Lines
                     .Where(p => p.Movie.MovieId == movie.MovieId)
                     .FirstOrDefault();
 }