Files
VinFontApp/VinFontApp/Controllers/TypeFontsController.cs
2025-05-30 13:04:37 +07:00

27 lines
768 B
C#

using AppLibs.Libs;
using Microsoft.AspNetCore.Mvc;
namespace VinFontApp.Controllers
{
public class TypeFontsController : Controller
{
[PageInfor("2001", "Type Font", "/TypeFont/*")]
[Layout(LayoutOptions.Custom, "Async1")]
public async Task<IActionResult> Index(string? id)
{
if (id != null)
{
NavItem list = WSNavigation.GetListMenu()[1];
NavItem? result = list.SubItem.FirstOrDefault(l => l.Url.Split('/').Last().Equals(id));
if (result != null)
{
ViewData["PageID"] = result.ID;
}
}
ViewBag.ID = id;
return await this.ViewAsync();
}
}
}