Esempio n. 1
0
        public virtual void AddItem(AddMoviesModel movie)
        {
            CartLine line = Lines
                            .Where(b => b.Movie.MovieID == movie.MovieID)
                            .FirstOrDefault();

            if (line == null)
            {
                Lines.Add(new CartLine
                {
                    Movie = movie
                });
            }
            else
            {
            }
        }
Esempio n. 2
0
 public virtual void RemoveLine(AddMoviesModel movie) =>
 Lines.RemoveAll(b => b.Movie.MovieID == movie.MovieID);
Esempio n. 3
0
 public static void AddApplication(AddMoviesModel addmovie)
 {
     movies.Add(addmovie);
 }