public void AddTask(TASK task)
        {
            TaskManagerEnt context = new TaskManagerEnt();

            try
            {
                context.AddTask(task);
            }
            catch (Exception ex)
            {
            }
        }
        public void UpdateTask(TASK task)
        {
            TaskManagerEnt context = new TaskManagerEnt();

            context.UpdateTask(task);
        }
        public void EndTask(int taskid)
        {
            TaskManagerEnt context = new TaskManagerEnt();

            context.Endtask(context.ReadTask(taskid));
        }
        public List <ParentTask> ReadAllParentTask()
        {
            TaskManagerEnt context = new TaskManagerEnt();

            return(context.ReadAllParentTask());
        }
        public task_view ReadTask(int Taskid)
        {
            TaskManagerEnt context = new TaskManagerEnt();

            return(context.ReadTask(Taskid));
        }
        public List <task_view> ReadAllTask()
        {
            TaskManagerEnt context = new TaskManagerEnt();

            return(context.ReadAllTask());
        }