예제 #1
0
        public async Task <IEnumerable <Shipment> > GetShipments()
        {
            var player = await _playerRepo.GetPlayer(Context.User);

            var shipments = await _repo.GetShipments(player);

            foreach (var shipment in shipments)
            {
                _entityRepo.Enrich(shipment.Carts.SelectMany(c => c.Inventory));
            }
            await Subscribe(shipments.Select(s => s.ShipmentId));

            return(shipments);
        }