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

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

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

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

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

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

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

            return(bll.Find(parameter));
        }