Esempio n. 1
0
 public bool Equals(BookingRecord other)
 {
     return(other != null &&
            FirstName != null && FirstName.Equals(other.FirstName) &&
            Surname != null && Surname.Equals(other.Surname) &&
            Price != null && Price.Equals(other.Price) &&
            Deposit != null && Deposit.Equals(other.Deposit) &&
            CheckIn != null && CheckIn.Equals(other.CheckIn) &&
            CheckIn != null && CheckIn.Equals(other.CheckIn));
 }
Esempio n. 2
0
 protected bool Equals(Booking other)
 {
     return(bookingId.Equals(other.bookingId) && EmployeeId.Equals(other.EmployeeId) && HotelId.Equals(other.HotelId) && RoomType == other.RoomType && CheckIn.Equals(other.CheckIn) && CheckOut.Equals(other.CheckOut));
 }