public async Task <ActionResult> GetOrderAsync(int orderId)
        {
            var order = await _querySender.SendQuery(new GetOrderByIdQuery(orderId));

            return(Ok(order));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetQueryTest([FromRoute] int id)
        {
            var orderDetails = await _querySender.SendQuery(new TestQuery(id));

            return(Ok(orderDetails));
        }