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)); }