Esempio n. 1
0
 public int CompareTo(SchedulingEntity other)
 {
     if (CompanyId == other.CompanyId)
     {
         return(DateStart.CompareTo(other.DateStart));
     }
     else
     {
         return(CompanyId.CompareTo(other.CompanyId));
     }
 }
Esempio n. 2
0
 public int CompareTo(CompanyCalenderEntity other)
 {
     if (CompanyId == other.CompanyId)
     {
         return(DateStart.CompareTo(other.DateStart));
     }
     else
     {
         return(CompanyId.CompareTo(other.CompanyId));
     }
 }