public async Task <IActionResult> Get()
 {
     return(Ok(await _query.GetOrderById(1)));
 }
Exemplo n.º 2
0
        public IActionResult Get(int orderid)
        {
            var model = mapper.Map <OrderInfo>(orderService.GetOrderById(orderid));

            return(Ok(model));
        }