public async Task <IActionResult> ConfirmOrder(int id) { var result = await _orderApiClient.ConfirmOrder(id); if (!result.IsSuccess) { TempData["error"] = result.Message; return(RedirectToAction("Detail", new { id = id })); } TempData["result"] = result.ResultObject; return(RedirectToAction("Detail", new { id = id })); }