public ViewModel() { Location = new LocationModel(); _locationServiceModel = new LocationsServiceModel(); GetAllDataCommand = new RelayCommand(ReloadLocations); AddLocationCommand = new RelayCommand(AddLocation); DeleteLocationCommand = new RelayCommand(RemoveLocation); UpdateLocationCommand = new RelayCommand(UpdateLocation); }
public void Initialize() { _repository = new TestDataRepository(); _model = new LocationsServiceModel(_repository); }