using Data.SeaHavenIndustries; using Microsoft.AspNetCore.Components; using Microsoft.EntityFrameworkCore; using SeaHavenIndustries.Data.IRepository; using System.Globalization; using Radzen; namespace SeaHavenIndustries { public partial class NorthwindService { private readonly NavigationManager navigationManager; public NorthwindService(NavigationManager navigationManager) { this.navigationManager = navigationManager; } public void Export(string table, string type, Query query = null) { navigationManager.NavigateTo(query != null ? query.ToUrl($"/export/northwind/{table}/{type}") : $"/export/northwind/{table}/{type}", true); } } }