using Bootstrap.Client.DataAccess;
using Bootstrap.Security;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Bootstrap.Client.Models
{
///
///
///
public class NavigatorBarModel : HeaderBarModel
{
///
///
///
///
public NavigatorBarModel(ControllerBase controller) : base(controller.User.Identity)
{
Navigations = MenuHelper.RetrieveAppMenus(UserName, $"~/{controller.ControllerContext.ActionDescriptor.ControllerName}/{controller.ControllerContext.ActionDescriptor.ActionName}");
ImageLibUrl = DictHelper.RetrieveImagesLibUrl();
}
///
///
///
public IEnumerable Navigations { get; }
///
///
///
public string ImageLibUrl { get; set; }
}
}