예제 #1
0
        private List <HYLAN_TASKDC> Update([FromBody] List <HYLAN_TASKDC> hylanTaskList)
        {
            HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL();

            HYLAN_TASKBL.Update(hylanTaskList);
            return(hylanTaskList);
        }
예제 #2
0
        private List <HYLAN_TASKDC> Insert([FromBody] List <HYLAN_TASKDC> hylanTaskList)
        {
            HYLAN_TASKBL HYLAN_TASKBL = new HYLAN_TASKBL();

            HYLAN_TASKBL.Insert(hylanTaskList);
            return(hylanTaskList);
        }
예제 #3
0
        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 }));
        }
예제 #4
0
        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 }));
        }
예제 #5
0
        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 }));
        }