//constructor public RegistrationVM() { _accontRepository = new UserAccontRepository(new TrackPlaceDbContext()); RegisterCommand = new RelayCommand(ExecuteMethodRegister); _userAccont = new UserAccont() { Password = new Password(), Person = new Person() }; }
public LoginVM() { _userAccontRepository = new UserAccontRepository(new TrackPlaceDbContext()); _user = new UserAccont() { Password = new Password(), Person = new Person() }; RegisterCommand = new RelayCommand(ExecuteRegister); LoginCommand = new RelayCommand(ExecuteLogin); }