Ejemplo n.º 1
0
 public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist      = (Stylist)otherStylist;
         bool    idEquality      = (this.GetId() == newStylist.GetId());
         bool    cuisineEquality = (this.GetStylist() == newStylist.GetStylist());
         return(idEquality && cuisineEquality);
     }
 }
Ejemplo n.º 2
0
 public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist   = (Stylist)otherStylist;
         bool    idEquality   = this.GetStylistId() == newStylist.GetStylistId();
         bool    nameEquality = this.GetStylist() == newStylist.GetStylist();
         return(idEquality && nameEquality);
         // bool idEquality = (this.Id == newClient.Id);
         // bool stylistEquality = (this.StylistName == newStylist.Stylist);
         // bool clientNameEquality = (this.ClientName == newStylist.ClientName);
         // return (idEquality && stylistEquality && clientNameEquality);
     }
 }