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}"); } /// /// /// public IEnumerable Navigations { get; } } }