Пример #1
0
        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());
            }
        }
Пример #2
0
        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());
            }
        }