refactor: HeaderBarModel获取用户信息时使用带缓存的方法

This commit is contained in:
Argo Zhang 2019-07-09 20:18:17 +08:00
parent ed5ce82486
commit de85c37a17
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -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();