public IEnumerable <Task> GetTasks() { IEnumerable <Task> resultsList = null; TasksDAC tasksData = new TasksDAC(); resultsList = tasksData.Select(); return(resultsList); }
public IEnumerable <Task> GetTaskByName(string taskName) { IEnumerable <Task> tasks = null; TasksDAC tasksData = new TasksDAC(); tasks = tasksData.SelectByName(taskName); return(tasks); }
public Task CreateTask(Task task) { Task newTask = null; TasksDAC tasksData = new TasksDAC(); newTask = tasksData.Create(task); return(newTask); }
public Task GetTaskByID(int taskID) { Task task = null; TasksDAC tasksData = new TasksDAC(); task = tasksData.SelectTask(taskID); return(task); }
public void DeleteTask(int ID) { TasksDAC tasksData = new TasksDAC(); tasksData.Delete(ID); }