コード例 #1
0
        public void AddParentTask(CommonEntities.ParentTasks task)
        {
            ProjectManagerEntities mockContext = MockDataSetList();
            var taskBL = new TaskBL(mockContext);

            taskBL.AddParentTask(task);
        }
コード例 #2
0
        public IHttpActionResult AddParentTask([FromBody] ProjectMangerModel.ParentTasks task)
        {
            try
            {
                CommonEntities.ParentTasks tk = new CommonEntities.ParentTasks
                {
                    ParentTask = task.ParentTask
                };

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