namespace Step.Model.DTOModels { public class DTORuntimeFunctionalityModel { public int Id { get; set; } public string Name { get; set; } public string Area { get; set; } public bool Enabled { get; set; } public override bool Equals(object obj) { // Object is not a DTORuntimeFunctionalityModel instance if (!(obj is DTORuntimeFunctionalityModel item)) return false; if (Id == item.Id && Enabled == item.Enabled) // Name Area don't change runtime return true; else return false; } public override int GetHashCode() { return base.GetHashCode(); } } }