private static string LevelToClassRoomLevel(string level) { if (level == null) { return(BaseAttendance.PRESENT); } if (BaseAttendance.IsLateLevel(level)) { return(BaseAttendance.TARDY); } if (level == "A" || level == "AO") { return(BaseAttendance.ABSENT); } return(BaseAttendance.MISSING); }
private string LevelToClassRoomLevel(string level, bool?isDailyAttendancePeriod) { if (level == null) { return(BaseAttendance.PRESENT); } if (BaseAttendance.IsLateLevel(level)) { return(BaseAttendance.TARDY); } if ((level == "A" || level == "AO") && isDailyAttendancePeriod.HasValue && isDailyAttendancePeriod.Value) { return(BaseAttendance.ABSENT); } return(BaseAttendance.MISSING); }