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.
Prowlarr/NzbDrone.Core/Indexers/NewznabRepository.cs

27 lines
635 B

using System;
using System.Collections.Generic;
12 years ago
using System.Data;
using System.Linq;
using System.Text;
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(IDbConnection database) : base(database)
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
12 years ago
return Where(n => n.Enabled);
}
}
}