Beispiel #1
0
        //[Route("api/{controller}")]
        public void Delete([FromBody] object pmsObj)
        {
            WebApiBasicBll bll = new WebApiBasicBll();

            bll.DeleteModelByPms <Me_worker>(ModelTool.ChangeObjectToList <Dictionary <string, object> >(pmsObj));
        }
Beispiel #2
0
        //[Route("api/{controller}")]
        public void Put([FromBody] object modelObj)
        {
            WebApiBasicBll bll = new WebApiBasicBll();

            bll.UpdateByModel(ModelTool.ChangeObjectToList <Me_worker>(modelObj));
        }
        //[Route("api/{controller}")]
        public void Post([FromBody] object modelObj)
        {
            WebApiBasicBll bll = new WebApiBasicBll();

            bll.CreateByModel(ModelTool.ChangeObjectToList <Mes_ua_submit>(modelObj));
        }