mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-18 08:28:17 +02:00
16 lines
425 B
C#
16 lines
425 B
C#
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
using MTWireGuard.Models.Requests;
|
|||
|
|
|||
|
namespace MTWireGuard.ViewComponents
|
|||
|
{
|
|||
|
[ViewComponent(Name = "DeleteModal")]
|
|||
|
public class DeleteModalViewComponent : ViewComponent
|
|||
|
{
|
|||
|
public async Task<IViewComponentResult> InvokeAsync(bool IsServer)
|
|||
|
{
|
|||
|
ViewData["IsServer"] = IsServer;
|
|||
|
return View("DeleteModal", new DeleteRequest());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|