コード例 #1
0
        public List <tb_qtxs> Find(tb_qtxs p)
        {
            string res = http.Get(GetUrl(RequestEnum.tb_qtxs), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <List <tb_qtxs> >());
        }
コード例 #2
0
        public int Delete(tb_qtxs p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_qtxs), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <int>());
        }
コード例 #3
0
        public int Update(tb_qtxs p)
        {
            string res = http.Put(GetUrl(RequestEnum.tb_qtxs), p).ReadAsStringAsync().Result;

            return(res.ToSerializer <int>());
        }
コード例 #4
0
        public int Delete(tb_qtxs parameter)
        {
            tb_qtxsBLL bll = new tb_qtxsBLL();

            return(bll.Delete(parameter));
        }
コード例 #5
0
        public int Put([FromBody] tb_qtxs parameter)
        {
            tb_qtxsBLL bll = new tb_qtxsBLL();

            return(bll.Update(parameter));
        }
コード例 #6
0
        public int Post([FromBody] tb_qtxs parameter)
        {
            tb_qtxsBLL bll = new tb_qtxsBLL();

            return(bll.Add(parameter));
        }
コード例 #7
0
        public IEnumerable <tb_qtxs> Get(tb_qtxs parameter)
        {
            tb_qtxsBLL bll = new tb_qtxsBLL();

            return(bll.Find(parameter));
        }