Пример #1
0
        public async Task <IActionResult> PaymentConfirm(int id)
        {
            var result = await _orderApiClient.PaymentConfirm(id);

            if (!result.IsSuccess)
            {
                TempData["error"] = result.Message;
                return(RedirectToAction("Detail", new { id = id }));
            }
            TempData["result"] = result.ResultObject;
            return(RedirectToAction("Detail", new { id = id }));
        }