protected async Task ExportAsExcel() { var token = await ConfigurationEntryService.GetAccessToken(); await JSRuntime.Log(token); await JSRuntime.InvokeVoidAsync("interop.downloadFile", ConfigurationEntryService.GetExportExcelUrl(), token, "Settings.xlsx"); }
public async void ConfirmedAddEdit(ConfigurationEntryModel model) { await(model.Id == Guid.Empty ? ConfigurationEntryService.CreateAsync(model) : ConfigurationEntryService.UpdateAsync(model)); AddEditDialog.Close(); ConfigurationEntries = await ConfigurationEntryService.GetListAsync(); StateHasChanged(); }
public async void ConfirmedDeleteSetting() { Logger.LogWarning($"Deleting Entry: {DeletingConfigurationEntry.Id}"); await ConfigurationEntryService.DeleteAsync(DeletingConfigurationEntry.Id); DeleteDialog.Close(); Logger.LogWarning($"Deleted Entry: {DeletingConfigurationEntry.Id}"); ConfigurationEntries = await ConfigurationEntryService.GetListAsync(); StateHasChanged(); }
protected override async Task OnInitializedAsync() { ConfigurationEntries = await ConfigurationEntryService.GetListAsync(); }