sonarr-repo-only/NzbDrone.Core/Tv/SeasonService.cs

33 lines
4.5 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using NLog;
using NzbDrone.Core.DecisionEngine.Specifications;
2013-09-11 06:33:47 +00:00
using NzbDrone.Core.Messaging;
using NzbDrone.Core.Tv.Events;
namespace NzbDrone.Core.Tv
{
public interface ISeasonService
{
List<Season> GetSeasonsBySeries(int seriesId);
}
2013-09-10 05:22:38 +00:00
public class SeasonService : ISeasonService
{
private readonly ISeasonRepository _seasonRepository;
private readonly Logger _logger;
2013-09-10 06:38:25 +00:00
public SeasonService(ISeasonRepository seasonRepository, Logger logger)
{
_seasonRepository = seasonRepository;
_logger = logger;
}
public List<Season> GetSeasonsBySeries(int seriesId)
{
return _seasonRepository.GetSeasonBySeries(seriesId);
}
}
2013-09-11 06:33:47 +00:00
}