Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of HomeViewModel
        /// </summary>
        /// <param name="dataService"></
        public StatisticViewModel(Data.Models.IDataService dataService)
        {
            this.Configuration = dataService.Configuration;
            this.Header        = dataService.GetSiteHeader();

            this.PodcastSummaries = dataService.GetStatistics();
        }
Esempio n. 2
0
        private const byte _ttl          = 30;      // Default TimeToLive (30 minutes)

        /// <summary>
        /// Initializes a new instance of FeedsViewModel
        /// </summary>
        /// <param name="dataService"></param>
        public FeedsViewModel(Data.Models.IDataService dataService)
        {
            this.Header        = dataService.GetSiteHeader();
            this.Configuration = dataService.Configuration;
            this.Podcasts      = dataService.GetLastPodcasts();
        }