Beispiel #1
0
        protected IActionResult CloseOrder(int orderId, OrderValueRequest orderValueRequest)
        {
            if (orderValueRequest == null)
            {
                return(BadRequest());
            }

            var order = OrderBusiness.CloseOrder(orderId, orderValueRequest.Value);

            SendOrderMessageToFollowers(new OrderResponse[] { order });
            return(Ok(order));
        }