public void InitDailyMenuOfWeek(int weekID)
        {
            WeekDAO weekDAO = new WeekDAO();
            Week    week    = weekDAO.GetByID(weekID);

            InsertAllDailyMenuOfWeek(week);
        }
        public void InitDailyTrackerOfWeek(int classID)
        {
            WeekDAO weekDAO = new WeekDAO();
            int     weekID  = weekDAO.GetWeekIDNow();
            Week    week    = weekDAO.GetByID(weekID);

            InsertAllDailyTrackerOfWeek(week, new StudentDailyTrackerDAO().ListAllByClassID(classID));
        }
 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);
     }
 }
 public bool HasDailyMenuOfWeek(int weekID)
 {
     try
     {
         dailyMenus = db.GetTable <DailyMenu>();
         WeekDAO weekDAO = new WeekDAO();
         Week    week    = weekDAO.GetByID(weekID);
         if (dailyMenus.Where(x => x.WeekID.Equals(weekID)).Count() < 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }