Beispiel #1
0
        public void AddParentTask(SPAProjectManager.Entities.ParentTasks task)
        {
            SPAProjectManagerEntities mockContext = MockDataSetList();
            var taskBL = new TaskBL(mockContext);

            taskBL.AddParentTask(task);
        }
Beispiel #2
0
        public void AddParentTask(SPAProjectManager.Entities.ParentTasks pTask)
        {
            SPAProjectManager_DL.Parent_Task tk = new SPAProjectManager_DL.Parent_Task
            {
                //Parent_ID=pTask.ParentTaskID,
                ParentTask = pTask.Parent_Task
            };

            _spaprojectManager.Parent_Task.Add(tk);
            _spaprojectManager.SaveChanges();
        }
Beispiel #3
0
        public IHttpActionResult AddParentTask([FromBody] SPAProjectManager.Models.ParentTasks task)
        {
            try
            {
                SPAProjectManager.Entities.ParentTasks tk = new SPAProjectManager.Entities.ParentTasks
                {
                    //ParentTaskID=task.ParentTaskID,
                    Parent_Task = task.ParentTask
                };

                _taskBL.AddParentTask(tk);
                return(Ok());
            }
            catch (Exception ex)
            {
                return(InternalServerError());
            }
        }