mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
27 lines
667 B
C#
27 lines
667 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
namespace NzbDrone.Core.Qualities
|
|
{
|
|
public interface IQualitySizeRepository : IBasicRepository<QualitySize>
|
|
{
|
|
QualitySize GetByQualityId(int qualityId);
|
|
}
|
|
|
|
public class QualitySizeRepository : BasicRepository<QualitySize>, IQualitySizeRepository
|
|
{
|
|
public QualitySizeRepository(IObjectDatabase database)
|
|
: base(database)
|
|
{
|
|
}
|
|
|
|
public QualitySize GetByQualityId(int qualityId)
|
|
{
|
|
return Queryable.Single(q => q.QualityId == qualityId);
|
|
}
|
|
}
|
|
}
|