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