示例#1
0
 //task functions
 public bool AddTask(string title, string body, DateTime dueDate)
 {
     BusinessLayer.Task t = user.GetBoard().AddTask(title, body, dueDate);
     if (t != null)
     {
         taskHandler.AddTaskToFile(t.GetBoardId(), t.GetTaskId(), title, body, t.GetCreationDate(), t.GetDueDate(), t.GetColumn());
         return(true);
     }
     return(false);
 }