using Microsoft.Extensions.Logging; using Tiger.Storage; namespace Tiger.Game.LandingView; public class LandingViewManager : ILandingViewManager { private readonly IRepository _promoArticleRepository; private readonly ILogger _logger; public LandingViewManager(IRepository promoArticleRepository, ILogger logger) { _promoArticleRepository = promoArticleRepository; _logger = logger; } public ICollection PromoArticles { get; private set; } = new List(); public async Task LoadPromoArticlesAsync() { PromoArticles = (await _promoArticleRepository.FindByAsync()).ToList(); _logger.LogInformation("Loaded {Count} promo articles", PromoArticles.Count); } }