mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-18 00:18:17 +02:00
15 lines
481 B
C#
15 lines
481 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using MTWireGuard.Models.Requests;
|
|
|
|
namespace MTWireGuard.ViewComponents
|
|
{
|
|
[ViewComponent(Name = "UpdateClientModal")]
|
|
public class UpdateClientModalViewComponent : ViewComponent
|
|
{
|
|
public async Task<IViewComponentResult> InvokeAsync(List<Models.Mikrotik.WGServerViewModel> Servers)
|
|
{
|
|
ViewData["Servers"] = Servers;
|
|
return View("UpdateClientModal", new UpdateClientRequest());
|
|
}
|
|
}
|
|
}
|