Exemplo n.º 1
0
        public async Task <IActionResult> GetOrders([FromBody] GetOrderByFilterQuery getOrderByFilterQuery)
        {
            var response = await _mediator.Send(getOrderByFilterQuery);

            if (!response.IsSuccessful)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }
Exemplo n.º 2
0
 public async Task <OrderFilterResponse> Search(GetOrderByFilterQuery getOrderByFilterQuery)
 {
     return(await _mediator.Send(getOrderByFilterQuery));
 }