Exemple #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> >());
        }
Exemple #2
0
        public int Delete(tb_goodsCF p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_goodsCF), p).ReadAsStringAsync().Result;

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

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

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

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

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

            return(bll.Find(parameter));
        }