public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != GetType()) { return(false); } DeliveryInfoToGetDto deliveryInfoToGetDto = (DeliveryInfoToGetDto)obj; return(this.DeliveryId.Equals( deliveryInfoToGetDto.DeliveryId) && this.LocalityGetName.Equals( deliveryInfoToGetDto .LocalityGetName) && LocalitySandName.Equals( deliveryInfoToGetDto .LocalitySandName)); }
protected bool Equals(DeliveryInfoToGetDto other) { return(AddresserEmail == other.AddresserEmail && DeliveryId == other.DeliveryId && LocalitySandName == other.LocalitySandName && LocalityGetName == other.LocalityGetName); }