mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 17:43:12 +00:00
25 lines
739 B
C#
25 lines
739 B
C#
|
|
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);
|
|
}
|
|
}
|
|
|
|
}
|