//Update
 public static void Update(Reservation reservation, int id, string customer, int room, DateTime checkin, DateTime checkout)
 {
     reservation.ID = id;
     reservation.customer = customer;
     reservation.room = room;
     reservation.CheckInDate = checkin;
     reservation.CheckOutDate = checkout;
 }
private void ResvdataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

            try
            {
                currentselecteditems = (Reservation)ResvdataGrid.SelectedItem;

            }
            catch { }
        }
        //Create
        public static Reservation Create(int id, string customer, int room, DateTime checkin, DateTime checkout)
        {
            Reservation reservation = new Reservation();

            reservation.ID = id;
            reservation.customer = customer;
            reservation.room = room;
            reservation.CheckInDate = checkin;
            reservation.CheckOutDate = checkout;


            reservations.Add(reservation);
            return reservation;
        }