/// <summary> /// Returns true if OwnerVerificationPdfViewModel instances are equal /// </summary> /// <param name="other">Instance of OwnerVerificationPdfViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(OwnerVerificationPdfViewModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ReportDate == other.ReportDate || ReportDate.Equals(other.ReportDate) ) && ( Title == other.Title || Title.Equals(other.Title) ) && ( DistrictId == other.DistrictId || DistrictId.Equals(other.DistrictId) ) && ( MinistryDistrictId == other.MinistryDistrictId || MinistryDistrictId.Equals(other.MinistryDistrictId) ) && ( DistrictName == other.DistrictName || DistrictName.Equals(other.DistrictName) ) && ( DistrictAddress == other.DistrictAddress || DistrictAddress.Equals(other.DistrictAddress) ) && ( DistrictContact == other.DistrictContact || DistrictContact.Equals(other.DistrictContact) ) && ( Owners == other.Owners || Owners.Equals(other.Owners) )); }
public override bool Equals(Object obj) { if (obj is Problem ob) { return(Id.Equals(ob.Id) && CategoryId.Equals(ob.CategoryId) && ThemeId.Equals(ob.ThemeId) && Adress.Equals(ob.Adress) && SourceId.Equals(ob.SourceId) && CreateDate.Equals(ob.CreateDate) && AnswerDate.Equals(ob.AnswerDate) && ProblemText.Equals(ob.ProblemText) && ProblemPhotos.Equals(ob.ProblemPhotos) && AnswerText.Equals(ob.AnswerText) && AnswerPhotos.Equals(ob.AnswerPhotos) && StatusId.Equals(ob.StatusId) && DistrictId.Equals(ob.DistrictId) && ChildID.Equals(ob.ChildID) && ParentID.Equals(ob.ParentID) && IspolnitelName.Equals(ob.IspolnitelName) && IspolnitelId.Equals(ob.IspolnitelId)); } return(false); }