///<summary> /// Adding new task to open column /// <example> /// <code> /// Task task = new Task(); <para/> /// Board.AddNewTaskToBoard(task); /// </code> /// </example> /// </summary> public static void AddNewTaskToBoard(Task task) { BoardDB.GetTasks().Add(task); if (BoardDB.SaveChanges() == 1) { var employ = BoardDB.GetEmploy(task.employId); OpenTasksList.Add(new TaskAndEmploy(task, employ)); } }