public async Task <List <ServiceAddress> > AllAsync() { using (var context = _contextCreator()) { _repository = new ConnectedRepository <ServiceAddress>(context); return(await _repository.AllAsync()); } }
public async Task <List <Material> > AllAsync() { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Material>(context); return(await _repository.AllAsync()); } }