示例#1
0
        public async Task <IActionResult> GetOrders([FromBody] IdData model)
        {
            var url     = $"{IDPSettings.Current.LunchAppUrl}OrderTrans/GetAllOrder/{model.Id}";
            var results = await _services.GetAsync <IEnumerable <GetOrders> >(url);

            return(new JsonResult(results));
        }
示例#2
0
        public async Task <IActionResult> GetAllCodes([FromBody] FieldData model)
        {
            var url     = $"{IDPSettings.Current.LunchAppUrl}GetAllCodes/{model.Code}";
            var results = await _services.GetAsync <IEnumerable <CodeData> >(url);

            return(new JsonResult(results));
        }
        public async Task <IActionResult> FoodItemByCategory([FromBody] IdData model)
        {
            var url     = $"{IDPSettings.Current.LunchAppUrl}GetAllFoodItemsInCat/{model.Id}";
            var results = await _services.GetAsync <IEnumerable <MenuModel> >(url);

            return(new JsonResult(results));
        }