예제 #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));
        }