//Method to delete a choosed task public void DeleteTask() { if (File.Exists("Task.json")) { _view.ListTasks(_jsonTask.ListAllTasks()); _jsonTask.DeleteTask(_view.TaskChoice()); Continue(); } else { _view.NoTasks(); Continue(); } }
public void DeleteTask(string taskname) { _jsonTask.DeleteTask(taskname); }