2016-10-24 01:01:29 +08:00
|
|
|
|
using Bootstrap.DataAccess;
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class HeaderBarModel : ModelBase
|
|
|
|
|
{
|
|
|
|
|
public HeaderBarModel()
|
|
|
|
|
{
|
2016-10-25 12:16:00 +08:00
|
|
|
|
var user = UserHelper.RetrieveUsersByName(HttpContext.Current.User.Identity.Name);
|
|
|
|
|
DisplayName = user.DisplayName;
|
|
|
|
|
UserID = user.ID;
|
2016-10-24 01:01:29 +08:00
|
|
|
|
HomeUrl = "~/";
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2016-10-25 12:16:00 +08:00
|
|
|
|
public int UserID { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2016-10-24 01:01:29 +08:00
|
|
|
|
public string DisplayName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ShowMenu { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string HomeUrl { get; set; }
|
|
|
|
|
}
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|