mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Naming config fixed, with integration tests
This commit is contained in:
parent
1e3a308917
commit
dd37713a10
7 changed files with 52 additions and 11 deletions
|
@ -21,7 +21,6 @@ namespace NzbDrone.Api
|
|||
PutValidator.RuleFor(r => r.Id).ValidId();
|
||||
}
|
||||
|
||||
|
||||
protected int GetNewId<TModel>(Func<TModel, TModel> function, TResource resource) where TModel : ModelBase, new()
|
||||
{
|
||||
var model = resource.InjectTo<TModel>();
|
||||
|
@ -35,7 +34,6 @@ namespace NzbDrone.Api
|
|||
return modelList.InjectTo<List<TResource>>();
|
||||
}
|
||||
|
||||
|
||||
protected PagingResource<TResource> ApplyToPage<TModel>(Func<PagingSpec<TModel>, PagingSpec<TModel>> function, PagingSpec<TModel> pagingSpec) where TModel : ModelBase, new()
|
||||
{
|
||||
pagingSpec = function(pagingSpec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue