public async Task <IActionResult> GetOrders([FromBody] GetOrderByFilterQuery getOrderByFilterQuery) { var response = await _mediator.Send(getOrderByFilterQuery); if (!response.IsSuccessful) { return(BadRequest(response)); } return(Ok(response)); }
public async Task <OrderFilterResponse> Search(GetOrderByFilterQuery getOrderByFilterQuery) { return(await _mediator.Send(getOrderByFilterQuery)); }