protected bool Equals(HoursRecord other) { return(Id.Equals(other.Id) && Date.Equals(other.Date) && Bonus.Equals(other.Bonus) && Price.Equals(other.Price) && Type == other.Type && string.Equals(Description, other.Description) && string.Equals(Value, other.Value) && string.Equals(GetRecordType, other.GetRecordType) && WorkTimeFrom.Equals(other.WorkTimeFrom) && WorkTimeTo.Equals(other.WorkTimeTo) && Equals(Time, other.Time) && Equals(BreakTime, other.BreakTime) && Equals(OverTime, other.OverTime)); }
private static bool IsDateEqual(HoursRecord obj1, HoursRecord obj2) { return(obj1.Date.Day == obj2.Date.Day && obj1.Date.Month == obj2.Date.Month && obj1.Date.Year == obj2.Date.Year); }