You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/NzbDrone.Core/Indexers/NewznabRepository.cs

24 lines
577 B

12 years ago
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
{
12 years ago
public NewznabRepository(IDatabase database)
: base(database)
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
return Query.Where(n => n.Enable);
}
}
}