public MainViewModel(IPeopleDataService peopleDataService) { _peopleDataService = peopleDataService; SaveCommand = new DelegateCommand(OnSaveExecute, OnSaveCanExecute); ResetCommand = new DelegateCommand(OnResetExecute, OnResetCanExecute); AddEmailCommand = new DelegateCommand(OnAddEmailExecute); RemoveEmailCommand = new DelegateCommand(OnRemoveEmailExecute, OnRemoveEmailCanExecute); People = new ObservableCollection <PersonWrapper>(); Emails = new ObservableCollection <EmailWrapper>(); }
public PeopleDataController(IPeopleDataService peopleDataService) { this.peopleDataService = peopleDataService; }
public PeopleController(IPeopleDataService peopleDataService) { _peopleDataService = peopleDataService; }