public static Reservation Build(Reservation reservation, Seance seance)
 {
     if (reservation != null)
     {
         reservation.Seance = seance;
     }
     return(reservation);
 }
示例#2
0
 /*
  * Builder for seance, used while fetching
  * the movie and hall from different table
  */
 public static Seance Build(Seance seance, Movie movie, Hall hall)
 {
     if (seance != null)
     {
         seance.Movie = movie;
         seance.Hall  = hall;
     }
     return(seance);
 }