protected override async Task InitializeAsync() { SelectedPassword = await _passwordDataService.GetPasswordById(_passwordId); await LoadGroups(); if (SelectedPassword != null) { SelectedGroup = await _passwordDataService.GetGroupById(SelectedPassword.PasswordGroup.Id); } }
protected override async Task InitializeAsync() { if (_groupId != string.Empty) { SelectedGroup = await _passwordDataService.GetGroupById(_groupId); } else { SelectedGroup = new Group(); } }
protected override async Task InitializeAsync() { if (_passwordId != string.Empty) { SelectedPassword = await _passwordDataService.GetPasswordById(_passwordId); } else { SelectedPassword = new Password(); } await LoadGroups(); if (SelectedPassword != null) { SelectedGroup = await _passwordDataService.GetGroupById(SelectedPassword.PasswordGroup.Id); } else { SelectedGroup = new Group(); } }
protected override async Task InitializeAsync() { SelectedGroup = await _passwordDataService.GetGroupById(_groupId); }