2018-10-19 23:09:52 +08:00
|
|
|
|
using Bootstrap.Client.DataAccess;
|
|
|
|
|
using Bootstrap.Security;
|
2018-09-16 19:33:56 +08:00
|
|
|
|
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)
|
|
|
|
|
{
|
2018-10-19 23:09:52 +08:00
|
|
|
|
Navigations = MenuHelper.RetrieveAppMenus(UserName, $"~/{controller.ControllerContext.ActionDescriptor.ControllerName}/{controller.ControllerContext.ActionDescriptor.ActionName}");
|
2019-04-13 16:01:06 +08:00
|
|
|
|
ImageLibUrl = DictHelper.RetrieveImagesLibUrl();
|
2018-09-16 19:33:56 +08:00
|
|
|
|
}
|
2019-04-13 16:01:06 +08:00
|
|
|
|
|
2018-09-16 19:33:56 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2018-10-19 23:09:52 +08:00
|
|
|
|
public IEnumerable<BootstrapMenu> Navigations { get; }
|
2019-04-13 16:01:06 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ImageLibUrl { get; set; }
|
2018-09-16 19:33:56 +08:00
|
|
|
|
}
|
|
|
|
|
}
|