Beispiel #1
0
        public Object LoadListTable()
        {
            //List<Table> listTable = new List<Table>();

            var listTable = tablecaller.Get("table");

            return(listTable);
        }
        public Object LoadListFoodCategory()
        {
            //List<Table> listTable = new List<Table>();

            var listFoodCategory = food_category_caller.Get("foodcategory");

            return(listFoodCategory);
        }
Beispiel #3
0
        public string getTableStatusByID(int id)
        {
            var tablestatuscaller          = new RestSharpCaller <TableStatus>("http://localhost:8000/api");
            List <TableStatus> tablestatus = tablestatuscaller.Get("tablestatus");
            string             result      = tablestatus.Find(item => item.id == id).title;

            return(result);
        }
Beispiel #4
0
        public Object LoadFoodByCategoryID(int id)
        {
            var foods = food_caller.Get("food/" + id);

            return(foods);
        }
Beispiel #5
0
        public Object LoadMenuByIDTable(int id)
        {
            var menu = menucaller.Get("loadMenuByTableId/" + id);

            return(menu);
        }