shoc-backend/SeaHavenIndustries/Helper/StateManagements/NorthwindService.cs
2024-09-28 14:58:36 -04:00

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);
}
}
}