private List <HYLAN_TASKDC> Update([FromBody] List <HYLAN_TASKDC> hylanTaskList) { HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL(); HYLAN_TASKBL.Update(hylanTaskList); return(hylanTaskList); }
private List <HYLAN_TASKDC> Insert([FromBody] List <HYLAN_TASKDC> hylanTaskList) { HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL(); HYLAN_TASKBL.Insert(hylanTaskList); return(hylanTaskList); }
public IHttpActionResult Get(int TASK_TITLE_ID, int JOB_ID) { HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL(); HYLAN_TASKDC objResult = new HYLAN_TASKDC(); objResult = HYLAN_TASKBL.LoadByPrimaryKey(TASK_TITLE_ID, JOB_ID); return(Ok(new { objResult })); }
public IHttpActionResult GetAll(int TASK_TITLE_ID) { HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL(); List <HYLAN_TASKDC> objResultList = new List <HYLAN_TASKDC>(); objResultList = HYLAN_TASKBL.LoadAll(TASK_TITLE_ID); return(Ok(new { objResultList })); }
public IHttpActionResult InsertUpdateTasks(List <List <HYLAN_TASKDC> > postData) { HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL(); postData = HYLAN_TASKBL.InsertUpdateTasks(postData); List <HYLAN_TASKDC> insertList = new List <HYLAN_TASKDC>(); List <HYLAN_TASKDC> updatedList = new List <HYLAN_TASKDC>(); if (postData != null && postData.Count == 2) { insertList = postData[0]; updatedList = postData[1]; } return(Ok(new { insertList, updatedList })); }