public Order(Visitor visitor, Cashier cashier, Film film, DateTime dateTime)
 {
     Visitor = visitor;
     Cashier = cashier;
     Film = film;
     DataSale = dateTime;
 }
 public Order(string id, Visitor visitor, Cashier cashier, Film film, DateTime dateTime)
 {
     ID = id;
     Visitor = visitor;
     Cashier = cashier;
     Film = film;
     DataSale = dateTime;
 }
 public void BuyTicket(Film film, Visitor visitor, Cashier cashier, string seat)
 {
     var dateTime = new DateTime(2012, 7, 5);
     var order = new Order
                     {
                         OrderID = Guid.NewGuid().ToString(),
                         Visitor = visitor,
                         VisitorID = visitor.VisitorID,
                         Cashier = cashier,
                         CashierID = cashier.CashierID,
                         Film = film,
                         FilmID = film.FilmID,
                         DataSale = dateTime
                     };
     _cinema.Orders.InsertOnSubmit(order);
     //_cinema.Seats.InsertOnSubmit(new Seat { OrderID = order.OrderID, SeatNumber = seat });
     _cinema.Visitors.InsertOnSubmit(visitor);
     _cinema.SubmitChanges();
 }
 public bool Equals(Film other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Title, Title) && other.Year == Year && Equals(other.Genre, Genre) /*&& Equals(other.ID, ID)*/;
 }
 partial void DeleteFilm(Film instance);
 partial void UpdateFilm(Film instance);
 partial void InsertFilm(Film instance);