2018-09-16 19:33:56 +08:00
|
|
|
|
using Bootstrap.Security;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Client.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NavigatorBarModel : HeaderBarModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="controller"></param>
|
|
|
|
|
public NavigatorBarModel(ControllerBase controller) : base(controller.User.Identity)
|
|
|
|
|
{
|
|
|
|
|
Navigations = BootstrapMenu.RetrieveAppMenus(UserName, $"~/{controller.ControllerContext.ActionDescriptor.ControllerName}/{controller.ControllerContext.ActionDescriptor.ActionName}");
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2018-10-10 12:03:00 +08:00
|
|
|
|
public IEnumerable<BootstrapMenu> Navigations { get;}
|
2018-09-16 19:33:56 +08:00
|
|
|
|
}
|
|
|
|
|
}
|