Exemplo n.º 1
0
        public async Task <IActionResult> CancelOrder(OrderCancelRequest request)
        {
            var result = await _orderApiClient.CancelOrder(request);

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