1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-18 23:48:35 +02:00
Sonarr/NzbDrone.Core/Tv/SeasonService.cs

28 lines
4.4 KiB
C#
Raw Normal View History

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