Exemplo n.º 1
0
        public static int GetToDoCountByMonth(ToDoListMonthManager toDoListMonthManager)
        {
            int currentMonth = DateTime.Now.Month;
            int currentYear  = DateTime.Now.Year;

            return(toDoListMonthManager.GetAll().Where(x => x.Month == currentMonth && x.Year == currentYear).ToList().Count);
        }
Exemplo n.º 2
0
        public static int GetToDoCountAll(ToDoListTodayManager today, ToDoListWeekManager week, ToDoListMonthManager month)
        {
            int countToday = today.GetAll().Count;
            int countWeek  = week.GetAll().Count;
            int countMonth = month.GetAll().Count;
            int result     = countToday + countWeek + countMonth;

            return(result);
        }