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); } }
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); }
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); }