Пример #1
0
        public List <tb_goods> Find(tb_goods p)
        {
            string res = http.Get(GetUrl(RequestEnum.tb_goods), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <List <tb_goods> >());
        }
Пример #2
0
        public int Delete(tb_goods p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_goods), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <int>());
        }
Пример #3
0
        public int Update(tb_goods p)
        {
            string res = http.Put(GetUrl(RequestEnum.tb_goods), p).ReadAsStringAsync().Result;

            return(res.ToSerializer <int>());
        }
Пример #4
0
        public int Delete(tb_goods parameter)
        {
            tb_goodsBLL bll = new tb_goodsBLL();

            return(bll.Delete(parameter));
        }
Пример #5
0
        public int Put([FromBody] tb_goods parameter)
        {
            tb_goodsBLL bll = new tb_goodsBLL();

            return(bll.Update(parameter));
        }
Пример #6
0
        public int Post([FromBody] tb_goods parameter)
        {
            tb_goodsBLL bll = new tb_goodsBLL();

            return(bll.Add(parameter));
        }
Пример #7
0
        public IEnumerable <tb_goods> Get(tb_goods parameter)
        {
            tb_goodsBLL bll = new tb_goodsBLL();

            return(bll.Find(parameter));
        }