mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-22 10:28:17 +02:00
Change project to 3-Layer structure
This commit is contained in:
parent
2f900a5036
commit
2d67540e13
1365 changed files with 760 additions and 618 deletions
16
UI/ViewComponents/UpdateClientModalViewComponent.cs
Normal file
16
UI/ViewComponents/UpdateClientModalViewComponent.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using MTWireGuard.Application.Models.Mikrotik;
|
||||
using MTWireGuard.Models.Requests;
|
||||
|
||||
namespace MTWireGuard.ViewComponents
|
||||
{
|
||||
[ViewComponent(Name = "UpdateClientModal")]
|
||||
public class UpdateClientModalViewComponent : ViewComponent
|
||||
{
|
||||
public async Task<IViewComponentResult> InvokeAsync(List<WGServerViewModel> Servers)
|
||||
{
|
||||
ViewData["Servers"] = Servers;
|
||||
return View("UpdateClientModal", new UpdateClientRequest());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue