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