From a6838b6fe1fc72c12882cc1ddff5022ed9adbb28 Mon Sep 17 00:00:00 2001 From: sunnian <853128958@qq.com> Date: Sat, 5 May 2018 13:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E9=80=82=E9=85=8D2013=E7=89=88=E6=9C=AC=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Models/HeaderBarModel.cs | 8 ++++---- Bootstrap.Admin/Models/ProfilesModel.cs | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Bootstrap.Admin/Models/HeaderBarModel.cs b/Bootstrap.Admin/Models/HeaderBarModel.cs index 5313244f..c6ebb12e 100644 --- a/Bootstrap.Admin/Models/HeaderBarModel.cs +++ b/Bootstrap.Admin/Models/HeaderBarModel.cs @@ -17,11 +17,11 @@ namespace Bootstrap.Admin.Models UserName = user.UserName; Css = user.Css; } - public string UserName { get; } + public string UserName { get; private set; } /// /// /// - public string DisplayName { get; } + public string DisplayName { get; private set; } /// /// /// @@ -29,10 +29,10 @@ namespace Bootstrap.Admin.Models /// /// 获得/设置 用户头像地址 /// - public string Icon { get; } + public string Icon { get; private set; } /// /// /// - public string Css { get; } + public string Css { get; private set; } } } \ No newline at end of file diff --git a/Bootstrap.Admin/Models/ProfilesModel.cs b/Bootstrap.Admin/Models/ProfilesModel.cs index 5fcb3725..830b38fe 100644 --- a/Bootstrap.Admin/Models/ProfilesModel.cs +++ b/Bootstrap.Admin/Models/ProfilesModel.cs @@ -14,16 +14,17 @@ namespace Bootstrap.Admin.Models /// /// 获得/设置 头像文件大小 /// - public long Size { get; } + public long Size { get; private set; } /// /// 获得 系统配置的所有样式表 /// - public IEnumerable Csss { get; } + public IEnumerable Csss { get; private set; } /// /// /// /// - public ProfilesModel(string url) : base(url) + public ProfilesModel(string url) + : base(url) { var fileName = HttpContext.Current.Server.MapPath(Icon); if (File.Exists(fileName))