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))); }
public static List <WorkShift> GetEmployeeWorkShift(int employee) { return(new WorkShift().GetObjectsValueFromExpression(x => x.WorkShiftTitle.Equals(Employee.GetWorkShift(employee)))); }