Esempio n. 1
0
        public override VerbViewBase Run()
        {
            var activeTasks = _todoTaskRepository.GetActiveTasksOrderedByAddedDate();
            IReadOnlyList <Category> categories = _categoryRepository.GetAllCategories();
            var completedTasks = Options.ShowCompletedTasks
                ? _todoTaskRepository.GetCompletedTasksOrderedByAddedDate()
                : new List <TodoTask>();

            return(new ListTasksView(Options, activeTasks, completedTasks, categories, _priorityColorChooser));
        }