Exemplo n.º 1
0
        public IEnumerable <Task> GetTasks()
        {
            IEnumerable <Task> resultsList = null;

            TasksDAC tasksData = new TasksDAC();

            resultsList = tasksData.Select();

            return(resultsList);
        }
Exemplo n.º 2
0
        public IEnumerable <Task> GetTaskByName(string taskName)
        {
            IEnumerable <Task> tasks = null;

            TasksDAC tasksData = new TasksDAC();

            tasks = tasksData.SelectByName(taskName);

            return(tasks);
        }
Exemplo n.º 3
0
        public Task CreateTask(Task task)
        {
            Task newTask = null;

            TasksDAC tasksData = new TasksDAC();

            newTask = tasksData.Create(task);

            return(newTask);
        }
Exemplo n.º 4
0
        public Task GetTaskByID(int taskID)
        {
            Task task = null;

            TasksDAC tasksData = new TasksDAC();

            task = tasksData.SelectTask(taskID);

            return(task);
        }
Exemplo n.º 5
0
        public void DeleteTask(int ID)
        {
            TasksDAC tasksData = new TasksDAC();

            tasksData.Delete(ID);
        }