1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add ban management page

This commit is contained in:
RaidMax
2022-06-05 16:27:56 -05:00
parent 9843f7404f
commit ae05bc4009
11 changed files with 484 additions and 86 deletions

View File

@ -142,7 +142,7 @@ namespace WebfrontCore.Controllers
}));
}
public IActionResult UnbanForm()
public IActionResult UnbanForm(long? id)
{
var info = new ActionInfo
{
@ -159,6 +159,15 @@ namespace WebfrontCore.Controllers
Action = "UnbanAsync",
ShouldRefresh = true
};
if (id is not null)
{
info.Inputs.Add(new()
{
Name = "targetId",
Value = id.ToString(),
Type = "hidden"
});
}
return View("_ActionForm", info);
}