mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Cleanup ReleaseProfileModule Compiler Warnings
This commit is contained in:
parent
e86104eac8
commit
5a9cd88304
1 changed files with 4 additions and 4 deletions
|
@ -15,11 +15,11 @@ namespace Lidarr.Api.V1.Profiles.Release
|
||||||
{
|
{
|
||||||
_releaseProfileService = releaseProfileService;
|
_releaseProfileService = releaseProfileService;
|
||||||
|
|
||||||
GetResourceById = Get;
|
GetResourceById = GetById;
|
||||||
GetResourceAll = GetAll;
|
GetResourceAll = GetAll;
|
||||||
CreateResource = Create;
|
CreateResource = Create;
|
||||||
UpdateResource = Update;
|
UpdateResource = Update;
|
||||||
DeleteResource = Delete;
|
DeleteResource = DeleteById;
|
||||||
|
|
||||||
SharedValidator.RuleFor(r => r).Custom((restriction, context) =>
|
SharedValidator.RuleFor(r => r).Custom((restriction, context) =>
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@ namespace Lidarr.Api.V1.Profiles.Release
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReleaseProfileResource Get(int id)
|
private ReleaseProfileResource GetById(int id)
|
||||||
{
|
{
|
||||||
return _releaseProfileService.Get(id).ToResource();
|
return _releaseProfileService.Get(id).ToResource();
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ namespace Lidarr.Api.V1.Profiles.Release
|
||||||
_releaseProfileService.Update(resource.ToModel());
|
_releaseProfileService.Update(resource.ToModel());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Delete(int id)
|
private void DeleteById(int id)
|
||||||
{
|
{
|
||||||
_releaseProfileService.Delete(id);
|
_releaseProfileService.Delete(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue