public void AddParentTask(CommonEntities.ParentTasks task) { ProjectManagerEntities mockContext = MockDataSetList(); var taskBL = new TaskBL(mockContext); taskBL.AddParentTask(task); }
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()); } }