Beispiel #1
0
        public List <tb_goodsCG> Find(tb_goodsCG p)
        {
            string res = http.Get(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <List <tb_goodsCG> >());
        }
Beispiel #2
0
        public int Delete(tb_goodsCG p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <int>());
        }
Beispiel #3
0
        public int Update(tb_goodsCG p)
        {
            string res = http.Put(GetUrl(RequestEnum.tb_goodsCG), p).ReadAsStringAsync().Result;

            return(res.ToSerializer <int>());
        }
Beispiel #4
0
        public int Delete(tb_goodsCG parameter)
        {
            tb_goodsCGBLL bll = new tb_goodsCGBLL();

            return(bll.Delete(parameter));
        }
Beispiel #5
0
        public int Put([FromBody] tb_goodsCG parameter)
        {
            tb_goodsCGBLL bll = new tb_goodsCGBLL();

            return(bll.Update(parameter));
        }
Beispiel #6
0
        public int Post([FromBody] tb_goodsCG parameter)
        {
            tb_goodsCGBLL bll = new tb_goodsCGBLL();

            return(bll.Add(parameter));
        }
Beispiel #7
0
        public IEnumerable <tb_goodsCG> Get(tb_goodsCG parameter)
        {
            tb_goodsCGBLL bll = new tb_goodsCGBLL();

            return(bll.Find(parameter));
        }