Ejemplo n.º 1
0
 public override bool Equals(System.Object otherSalon)
 {
     if (!(otherSalon is Salon))
     {
         return(false);
     }
     else
     {
         Salon newSalon      = (Salon)otherSalon;
         bool  idEquality    = this.GetId() == newSalon.GetId();
         bool  nameEquality  = this.GetName() == newSalon.GetName();
         bool  aboutEquality = this.GetAbout() == newSalon.GetAbout();
         return(idEquality && nameEquality && aboutEquality);
     }
 }