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); }
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); }
public Object LoadFoodByCategoryID(int id) { var foods = food_caller.Get("food/" + id); return(foods); }
public Object LoadMenuByIDTable(int id) { var menu = menucaller.Get("loadMenuByTableId/" + id); return(menu); }