1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Core/Indexers/NewznabRepository.cs

24 lines
583 B
C#
Raw Normal View History

2013-03-25 07:46:51 +03:00
using System.Collections.Generic;
2013-02-23 07:37:23 +03:00
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers
{
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
{
IEnumerable<NewznabDefinition> Enabled();
}
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{
2013-03-25 07:46:51 +03:00
public NewznabRepository(IDatabase database)
: base(database)
2013-02-23 07:37:23 +03:00
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
2013-03-25 07:46:51 +03:00
return Queryable().Where(n => n.Enable);
2013-02-23 07:37:23 +03:00
}
}
}