Exemplo n.º 1
0
 public Task <List <ShipmentResource> > GetShipmentsAsync(ShipmentParams queryParams)
 => Collection
 .Find(queryParams.StatusFilterExpression)
 .Page(queryParams)
 .Project(s => s.ToShipmentResource())
 .ToListAsync();
Exemplo n.º 2
0
 public async Task <List <ShipmentResource> > GetShipments(
     [FromQuery] ShipmentParams queryParams,
     [FromServices] ShipmentQuery shipmentQuery)
 => await shipmentQuery.GetShipmentsAsync(queryParams);