public List<Task> Get()
        {
            var dbHandler = new DbHandler(new HistoryHandler());

            List<Task> tasks = dbHandler.GetAllTasks();
            return tasks;
        }
 public VisualCronEventHandler()
 {
     StartTime = DateTime.Now;
     LastUpdateTime = StartTime;
     IsServerRunning = true;
     Tasks.TaskUpdatedStatic += OnTaskUpdated;
     Server.ServerStatusOffStatic += server_ServerStatusOff;
     DbHandler = new DbHandler(new HistoryHandler());
     VisualCronHubHandler = new VisualCronHubHandler(DbHandler);
 }