1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-02 13:24:33 +00:00
Radarr/NzbDrone.Core/Indexers/NewznabRepository.cs
2013-03-25 23:19:56 -07:00

23 lines
583 B
C#

using System.Collections.Generic;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers
{
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
{
IEnumerable<NewznabDefinition> Enabled();
}
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{
public NewznabRepository(IDatabase database)
: base(database)
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
return Queryable().Where(n => n.Enable);
}
}
}