Beispiel #1
0
 public static WorkShift GetEmployeeWorkShiftOnDay(int employee, string dayOfWeek)
 {
     if (dayOfWeek.Length > 3)
     {
         dayOfWeek = dayOfWeek.Substring(0, 3);
     }
     return(new WorkShift().GetObjectValueFromExpression(x => x.WorkShiftTitle.Equals(Employee.GetWorkShift(employee)) && x.WorkDays.Equals(dayOfWeek)));
 }
Beispiel #2
0
 public static List <WorkShift> GetEmployeeWorkShift(int employee)
 {
     return(new WorkShift().GetObjectsValueFromExpression(x => x.WorkShiftTitle.Equals(Employee.GetWorkShift(employee))));
 }