public PeopleController() { _repo = new PersonRepository(); //we would want to DI this in real life }
private async Task InitializeAsync() { _repo = new PersonRepository(); await _repo.Initilization; }
public PeopleController() { _repo = new PersonRepository(); //we would want to DI this in real life }
private async Task InitializeAsync() { _repo = new PersonRepository(); await _repo.Initilization; }