|
|
|
@ -15,11 +15,11 @@ namespace Sonarr.Api.V3.Profiles.Release
|
|
|
|
|
{
|
|
|
|
|
_releaseProfileService = releaseProfileService;
|
|
|
|
|
|
|
|
|
|
GetResourceById = Get;
|
|
|
|
|
GetResourceById = GetReleaseProfile;
|
|
|
|
|
GetResourceAll = GetAll;
|
|
|
|
|
CreateResource = Create;
|
|
|
|
|
UpdateResource = Update;
|
|
|
|
|
DeleteResource = Delete;
|
|
|
|
|
DeleteResource = DeleteReleaseProfile;
|
|
|
|
|
|
|
|
|
|
SharedValidator.Custom(restriction =>
|
|
|
|
|
{
|
|
|
|
@ -32,7 +32,7 @@ namespace Sonarr.Api.V3.Profiles.Release
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private ReleaseProfileResource Get(int id)
|
|
|
|
|
private ReleaseProfileResource GetReleaseProfile(int id)
|
|
|
|
|
{
|
|
|
|
|
return _releaseProfileService.Get(id).ToResource();
|
|
|
|
|
}
|
|
|
|
@ -52,7 +52,7 @@ namespace Sonarr.Api.V3.Profiles.Release
|
|
|
|
|
_releaseProfileService.Update(resource.ToModel());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Delete(int id)
|
|
|
|
|
private void DeleteReleaseProfile(int id)
|
|
|
|
|
{
|
|
|
|
|
_releaseProfileService.Delete(id);
|
|
|
|
|
}
|
|
|
|
|