public UserListPageViewModel(UserListPage view, UserRepository repository) { this.view = view; this.repository = repository; RetrieveData(); }
public UserEditorWindowViewModel(UserEditorWindow view, User user, UserRepository repository) { if (user == null) { CreateMode = true; user = new User(); } this.view = view; this.repository = repository; User = user; if (CreateMode) return; view.SetPasswordDots(); view.Set(User.Type); }
public UserController() { _context = new UserRepository(); }