private async Task Remove(Infrastructure.Schema.Whitelist row) { var confirmed = await JSRuntime.InvokeAsync <bool>("confirm", new object[] { $"Remove rule '{row.Pattern}'?" }); if (confirmed) { WhitelistModel.Remove(row); _whitelistTable !.InvalidateData(); await ReloadWhitelist(); } }
public static void Remove(Whitelist row) { WhitelistModel.Remove(row); }