@using TightWiki.Models @model TightWiki.Models.ViewModels.Admin.MenuItemViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); } @if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @if (string.IsNullOrEmpty(Model.ErrorMessage)) {
Delete menu item "@Model.Name"?
Deleting "@Model.Name" will permanently remove the menu item. You will not be able to revert this action.

Are you sure you want to continue with this deletion?

@using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) {
  
}
}