public IActionResult Cancel(string orderId)
        {
            _orderSvc.CancelOrder(orderId);

            //Redirect to historic list.
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public async Task <IActionResult> Cancel(string orderId)
        {
            await _orderSvc.CancelOrder(orderId);

            //Redirect to historic list.
            return(RedirectToAction("Index"));
        }
 public Task <Response> CancelOrder([FromBody] OrderPayRequest request)
 {
     return(orderingService.CancelOrder(request));
 }