2016-10-21 16:35:26 +08:00
|
|
|
|
using Bootstrap.DataAccess;
|
2017-04-03 15:56:17 +08:00
|
|
|
|
using Bootstrap.Security;
|
2016-10-21 16:35:26 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Models
|
|
|
|
|
{
|
|
|
|
|
public class NavigatorBarModel : HeaderBarModel
|
|
|
|
|
{
|
2016-11-03 19:52:35 +08:00
|
|
|
|
public NavigatorBarModel(string url)
|
2016-10-21 16:35:26 +08:00
|
|
|
|
{
|
2017-07-25 14:57:10 +08:00
|
|
|
|
Navigations = BootstrapMenu.RetrieveSystemMenus(UserName, url);
|
2017-03-03 13:34:53 +08:00
|
|
|
|
Applications = DictHelper.RetrieveApps();
|
2016-11-03 19:52:35 +08:00
|
|
|
|
HomeUrl = "~/Admin/Index";
|
2016-10-21 16:35:26 +08:00
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2017-04-03 15:56:17 +08:00
|
|
|
|
public IEnumerable<BootstrapMenu> Navigations { get; private set; }
|
2017-03-03 13:34:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2017-03-30 15:32:49 +08:00
|
|
|
|
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
|
|
|
|
}
|