public List <TaskMainDTO> GetAllTasks()
        {
            IList <TaskMainDAO> taskMainDaoCollection = TaskMainDAO.GetAllTasksFromDB();
            IList <ITask>       taskMainCollection    = ConverterDAOtoDomain.TaskMainDaoToTaskMain(taskMainDaoCollection);
            List <TaskMainDTO>  taskMainDtoCollection = ConverterDomainToDTO.TaskMainToTaskMainDTO(taskMainCollection);

            return(taskMainDtoCollection);
        }
        private static void FillTaskMainDaoCollectionFromDB()
        {
            taskMainDaoCollection = new Dictionary <TaskKey, TaskMainDAO>();
            IList <TaskMainDAO> allTasks = TaskMainDAO.GetAllTasksFromDB();

            foreach (TaskMainDAO task in allTasks)
            {
                taskMainDaoCollection.Add(task.GetTaskKey(), task);
            }
        }