예제 #1
0
        public void UpdateReservation(Reservation reservation)
        {
            Reservation reserv = GetReservation(reservation.ReservationId);

            reserv.Name          = reservation.Name;
            reserv.StartLocation = reservation.StartLocation;
            reserv.EndLocation   = reservation.EndLocation;

            _database.Update(reserv);

            _database.SaveChanges();
        }