27 lines
768 B
C#
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();
|
|
}
|
|
}
|
|
}
|