Exemplo n.º 1
0
        public List <tb_goodsCF> Find(tb_goodsCF p)
        {
            string res = http.Get(GetUrl(RequestEnum.tb_goodsCF), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <List <tb_goodsCF> >());
        }
Exemplo n.º 2
0
        public int Delete(tb_goodsCF p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_goodsCF), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <int>());
        }
Exemplo n.º 3
0
        public int Update(tb_goodsCF p)
        {
            string res = http.Put(GetUrl(RequestEnum.tb_goodsCF), p).ReadAsStringAsync().Result;

            return(res.ToSerializer <int>());
        }
Exemplo n.º 4
0
        public int Delete(tb_goodsCF parameter)
        {
            tb_goodsCFBLL bll = new tb_goodsCFBLL();

            return(bll.Delete(parameter));
        }
Exemplo n.º 5
0
        public int Put([FromBody] tb_goodsCF parameter)
        {
            tb_goodsCFBLL bll = new tb_goodsCFBLL();

            return(bll.Update(parameter));
        }
Exemplo n.º 6
0
        public int Post([FromBody] tb_goodsCF parameter)
        {
            tb_goodsCFBLL bll = new tb_goodsCFBLL();

            return(bll.Add(parameter));
        }
Exemplo n.º 7
0
        public IEnumerable <tb_goodsCF> Get(tb_goodsCF parameter)
        {
            tb_goodsCFBLL bll = new tb_goodsCFBLL();

            return(bll.Find(parameter));
        }