示例#1
0
        public bool EditTask(InterfaceLayerTask old, InterfaceLayerTask newTask, string userName, string currCol)
        {
            User user = Authantication.userRegisterd[userName];

            BL.Task old1     = new BL.Task(old.Title, old.Description, old.DueDate, old.CurrCol, old.CreationTime);
            BL.Task newTask1 = new BL.Task(newTask.Title, newTask.Description, newTask.DueDate, newTask.CurrCol, old.CreationTime);
            return(user.EditTask(old1, newTask1, currCol));
        }
示例#2
0
        public bool PromoteTaskToNextPhase(string userName, InterfaceLayerTask task)
        {
            User   user      = Authantication.userRegisterd[userName];
            string currCol   = task.CurrCol;
            string targetCol = user.KanBanBoard.columnsOrder.Find(currCol).Next.Value;

            if (targetCol == null)
            {
                FileLogger.WriteErrorToLog("the task is in the last column - can't promote the task!");
                return(false);
            }
            BL.Task t = new BL.Task(task.Title, task.Description, task.DueDate, task.CurrCol, task.CreationTime);
            return(user.PromoteTaskToNextPhase(t, currCol, targetCol));
        }