refactor: HeaderBarModel获取用户信息时使用带缓存的方法
This commit is contained in:
parent
ed5ce82486
commit
de85c37a17
|
@ -18,7 +18,7 @@ namespace Bootstrap.Client.Models
|
|||
/// <param name="identity"></param>
|
||||
public HeaderBarModel(IIdentity identity)
|
||||
{
|
||||
var user = DbHelper.RetrieveUserByUserName(identity.Name);
|
||||
var user = DbHelper.RetrieveUserByUserNameWithCache(identity.Name);
|
||||
DisplayName = user.DisplayName;
|
||||
UserName = user.UserName;
|
||||
SettingsUrl = DbHelper.RetrieveSettingsUrl();
|
||||
|
|
Loading…
Reference in New Issue