public static void MoveTask(int task) { if (kanban.MoveTask(task)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("task was Moved"); Console.ResetColor(); PrintBoard(); UserOption(); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("task moving failed, at least one of your column is full or the task Id does not exist"); Console.ResetColor(); UserOption(); } }
public static void MoveTask(int taskId) { if (kanban.MoveTask(taskId)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Task has been moved."); Console.ResetColor(); PrintBoard(); UserOption(); } else { Console.ForegroundColor = ConsoleColor.Red; Log.Warn("Task moving failed. The column was full or the taskId doesn't exist or the user tried to move a task from the 'done column'"); Console.WriteLine("Please check if your columns are full, the task Id exists \nand you are not trying to move task from 'done' column."); Console.ResetColor(); UserOption(); } }