コード例 #1
0
        public bool delete([FromBody] JObject json)
        {
            string token = HttpContext.Current.Request.Headers["Authorization"].ToString();

            if (new Cook.BLL.users().delhenchman(common.getIdByToken(token)))
            {
                Cook.BLL.henchman_ collect = new Cook.BLL.henchman_();
                return(collect.delete(token, json["id"].ToString()));
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public Cook.Model.henchman_ Post(JObject value)
 {
     Cook.BLL.henchman_   c   = new Cook.BLL.henchman_();
     Cook.Model.henchman_ msg = c.GetModel(value["id"].ToString(), value["tableid"].ToString());
     return(msg);
 }
コード例 #3
0
 public Cook.Model.henchman_  Get(string id, string tableid)
 {
     Cook.BLL.henchman_   c   = new Cook.BLL.henchman_();
     Cook.Model.henchman_ msg = c.GetModel(id, tableid);
     return(msg);
 }