mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
32 lines
No EOL
4.5 KiB
C#
32 lines
No EOL
4.5 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using NLog;
|
||
using NzbDrone.Common.Messaging;
|
||
using NzbDrone.Core.DecisionEngine.Specifications;
|
||
using NzbDrone.Core.Tv.Events;
|
||
|
||
namespace NzbDrone.Core.Tv
|
||
{
|
||
public interface ISeasonService
|
||
{
|
||
List<Season> 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<Season> GetSeasonsBySeries(int seriesId)
|
||
{
|
||
return _seasonRepository.GetSeasonBySeries(seriesId);
|
||
}
|
||
}
|
||
} |