Exemple #1
0
 public void CreateReservation(Reservation reservation)
 {
     using (var context = new AutoReservationEntities())
     {
         context.AddToReservationen(reservation);
         context.SaveChanges();
     }
 }
Exemple #2
0
 public int InsertReservation(Reservation reservation)
 {
     using (var context = new AutoReservationEntities())
     {
         context.AddToReservationen(reservation);
         context.SaveChanges();
         return(reservation.ReservationNr);
     }
 }