Exemplo n.º 1
0
        private void SetCache(ApplicationUser user)
        {
            Guid             key           = new Guid(user.Id);
            ProfileViewModel cachedProfile = profileAppService.GetUserProfileWithCache(key);

            if (cachedProfile == null)
            {
                ProfileViewModel profile = profileAppService.GetByUserId(key, ProfileType.Personal);
                if (profile != null)
                {
                    profileAppService.SetProfileCache(key, profile);
                }
            }
        }