public async Task EnableEmployeeSsoAsync() { try { await EmployeeService.EnableSsoAsync(Employee); var callback = await ApplicationUserService.GenerateEnableSsoCallBackUrlAsync(Employee.Email, NavigationManager.BaseUri); await EmailSenderService.SendEmployeeEnableSsoAsync(Employee.Email, callback); await ToastService.ShowToastAsync($"SSO enabled.", ToastType.Success); await ModalDialogClose(); } catch (Exception ex) { Logger.LogError(ex.Message, ex); await ToastService.ShowToastAsync(ex.Message, ToastType.Error); await ModalDialogCancel(); } }