using System.Collections.Generic; using NzbDrone.Core.Datastore; using NzbDrone.Core.Messaging.Events; namespace NzbDrone.Core.DataAugmentation.Scene { public interface ISceneMappingRepository : IBasicRepository { List FindByTvdbid(int tvdbId); List GetAllByType(string type); } public class SceneMappingRepository : BasicRepository, ISceneMappingRepository { public SceneMappingRepository(IMainDatabase database, IEventAggregator eventAggregator) : base(database, eventAggregator) { } public List FindByTvdbid(int tvdbId) { return Query(x => x.TvdbId == tvdbId); } public List GetAllByType(string type) { return Query(x => x.Type == type); } } }