protected async override Task OnInitializedAsync() { bool idIsGuid = Guid.TryParse(Id, out Guid guidId); if (idIsGuid) { _vm = new CharacterViewModel(guidId); _vm.PropertyChanged += (sender, e) => StateHasChanged(); _vm.InjectRepository(CharacterRepository); await _vm.LoadViewModel(); await base.OnInitializedAsync(); } }