Beispiel #1
0
        public List <tb_Waiter> Find(tb_Waiter p)
        {
            string res = http.Get(GetUrl(RequestEnum.tb_Waiter), p).ReadAsStringAsync().Result;

            return(res.ToDeserialize <List <tb_Waiter> >());
        }
Beispiel #2
0
        public int Delete(tb_Waiter p)
        {
            string res = http.Delete(GetUrl(RequestEnum.tb_Waiter), p).ReadAsStringAsync().Result;

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

            return(res.ToSerializer <int>());
        }
Beispiel #4
0
        public int Delete(tb_Waiter parameter)
        {
            tb_WaiterBLL bll = new tb_WaiterBLL();

            return(bll.Delete(parameter));
        }
Beispiel #5
0
        public int Put([FromBody] tb_Waiter parameter)
        {
            tb_WaiterBLL bll = new tb_WaiterBLL();

            return(bll.Update(parameter));
        }
Beispiel #6
0
        public int Post([FromBody] tb_Waiter parameter)
        {
            tb_WaiterBLL bll = new tb_WaiterBLL();

            return(bll.Add(parameter));
        }
Beispiel #7
0
        public IEnumerable <tb_Waiter> Get(tb_Waiter parameter)
        {
            tb_WaiterBLL bll = new tb_WaiterBLL();

            return(bll.Find(parameter));
        }