Пример #1
0
        public async Task <bool> HasOrderAsync(Guid customerId)
        {
            var models = await _store.GetAllAsync();

            return(models.Any(model => model.CustomerId == customerId));
        }
        public async Task <IEnumerable <Guid> > GetShipmentsAsync(Guid customerId)
        {
            var models = await _store.GetAllAsync();

            return(models.Select(model => model.Id));
        }