public async Task <IActionResult> IndexAsync([FromServices] IOrderApiClient requestOrder) { var fees = await requestOrder.GetListFeeAsync(); ViewBag.Fees = fees; return(View()); }
public async Task <IActionResult> CheckoutAsync() { var listOrderItem = _getOrderItemsInSession(HttpContext); if (listOrderItem == null) { return(Redirect("/Order")); } // var fees = await _requestOrder.GetListFeeAsync(); HttpContext.Session.SetString(PageHelper.KEY_FEE_SESSION, JsonSerializer.Serialize(fees)); ViewBag.Fees = fees; return(View("Index", listOrderItem)); }