2023-03-03 23:24:18 +03:30
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2023-06-02 15:26:29 +03:30
|
|
|
|
using MTWireGuard.Application.Models.Mikrotik;
|
2023-03-03 23:24:18 +03:30
|
|
|
|
using MTWireGuard.Models.Requests;
|
|
|
|
|
|
|
|
|
|
namespace MTWireGuard.ViewComponents
|
|
|
|
|
{
|
|
|
|
|
[ViewComponent(Name = "UpdateClientModal")]
|
|
|
|
|
public class UpdateClientModalViewComponent : ViewComponent
|
|
|
|
|
{
|
2023-06-02 15:26:29 +03:30
|
|
|
|
public async Task<IViewComponentResult> InvokeAsync(List<WGServerViewModel> Servers)
|
2023-03-03 23:24:18 +03:30
|
|
|
|
{
|
|
|
|
|
ViewData["Servers"] = Servers;
|
|
|
|
|
return View("UpdateClientModal", new UpdateClientRequest());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|