BootstrapAdmin/Bootstrap.Admin/Models/NavigatorBarModel.cs

24 lines
733 B
C#
Raw Normal View History

2016-10-21 16:35:26 +08:00
using Bootstrap.DataAccess;
using Bootstrap.Security;
2016-10-21 16:35:26 +08:00
using System.Collections.Generic;
namespace Bootstrap.Admin.Models
{
public class NavigatorBarModel : HeaderBarModel
{
public NavigatorBarModel(string url)
2016-10-21 16:35:26 +08:00
{
Navigations = BootstrapMenu.RetrieveSystemMenus(UserName, url);
Applications = DictHelper.RetrieveApps();
HomeUrl = "~/Admin/Index";
2016-10-21 16:35:26 +08:00
}
/// <summary>
///
/// </summary>
public IEnumerable<BootstrapMenu> Navigations { get; private set; }
/// <summary>
///
/// </summary>
public IEnumerable<KeyValuePair<string, string>> Applications { get; private set; }
2016-10-21 16:35:26 +08:00
}
2016-10-20 17:55:29 +08:00
}