public override bool Equals(object obj) { if (obj == null || obj.GetType() != typeof(OfferCategory)) { return(false); } OfferCategory convertedCategory = (OfferCategory)obj; return(convertedCategory.EOfferWebsite.Equals(EOfferWebsite) && convertedCategory.CategoryUrl.Equals(CategoryUrl)); }
protected bool Equals(OfferCategory other) { return(CategoryUrl == other.CategoryUrl && CategoryName == other.CategoryName && EOfferWebsite == other.EOfferWebsite && CategoryId == other.CategoryId); }