Replace the TempData-like TotalVisibleAlbums [NotMapped] property on Person with a direct DTO projection in PersonRepository.SearchQuery. The repository now returns IEnumerable<PersonPreviewDto>, computing the visibility-aware album count in the EF Core subquery and projecting only the needed columns. This avoids polluting the entity model with a context-dependent property.