using System; using System.Collections.Generic; using System.Linq; using NLog; using NzbDrone.Core.DecisionEngine.Specifications; using NzbDrone.Core.Messaging; using NzbDrone.Core.Tv.Events; namespace NzbDrone.Core.Tv { public interface ISeasonService { List GetSeasonsBySeries(int seriesId); } public class SeasonService : ISeasonService { private readonly ISeasonRepository _seasonRepository; private readonly Logger _logger; public SeasonService(ISeasonRepository seasonRepository, Logger logger) { _seasonRepository = seasonRepository; _logger = logger; } public List GetSeasonsBySeries(int seriesId) { return _seasonRepository.GetSeasonBySeries(seriesId); } } }