public async Task <IActionResult> Checkout(OrderCreateRequest request) { request.ListCart = await GetListCart(CultureInfo.CurrentCulture.Name); if (!ModelState.IsValid) { return(View(request)); } else { var result = await _orderApiClient.Create(request); if (result.IsSuccessed) { return(RedirectToAction("History")); } } TempData["SuccessMsg"] = "Order puschased successful"; return(View(request)); }