public async void HandleRegisterSubmit() { client = register.client; cred = register.credential; client.UserName = cred.UserName; await CredentialDataService.AddCredential(cred); await ClientDataService.AddClient(client); LoginRequired = true; RegisterPage = false; StateHasChanged(); }