Example #1
0
 public static bool isPromoted(D.Employee employee)
 {
     if (employee.experience >= 5)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 static bool findEmployee(Employee emp)
 {
     return emp.Id == 1;
 }