Пример #1
0
        public void InitDailyTrackerOfWeek(int classID)
        {
            WeekDAO weekDAO = new WeekDAO();
            int     weekID  = weekDAO.GetWeekIDNow();
            Week    week    = weekDAO.GetByID(weekID);

            InsertAllDailyTrackerOfWeek(week, new StudentDailyTrackerDAO().ListAllByClassID(classID));
        }
Пример #2
0
 public bool HasDailyTrackerOfWeek()
 {
     try
     {
         WeekDAO weekDAO = new WeekDAO();
         int     weekID  = weekDAO.GetWeekIDNow();
         Week    week    = weekDAO.GetByID(weekID);
         if (dailyTrackers.Where(x => x.WeekID.Equals(weekID)).Count() < 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }