public void Add(Model.bi_t_people_info peo) { JsonRequest r = new JsonRequest(); r.Write <bi_t_people_info>(peo); r.request("/people?t=add"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }
public void Del(Model.bi_t_people_info peo) { JsonRequest r = new JsonRequest(); r.Write("oper_id", peo.oper_id); r.request("/people?t=delete"); if (!r.ReadSuccess()) { throw new Exception(r.ReadMessage()); } }