From 5a9cd88304634467e84fbdbf8496ac9b8e9841da Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 11 Sep 2019 21:46:05 -0400 Subject: [PATCH] Fixed: Cleanup ReleaseProfileModule Compiler Warnings --- .../Profiles/Release/ReleaseProfileModule.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileModule.cs b/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileModule.cs index 83cbbe8ac..3ce7a3d40 100644 --- a/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileModule.cs +++ b/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileModule.cs @@ -15,11 +15,11 @@ namespace Lidarr.Api.V1.Profiles.Release { _releaseProfileService = releaseProfileService; - GetResourceById = Get; + GetResourceById = GetById; GetResourceAll = GetAll; CreateResource = Create; UpdateResource = Update; - DeleteResource = Delete; + DeleteResource = DeleteById; 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(); } @@ -50,7 +50,7 @@ namespace Lidarr.Api.V1.Profiles.Release _releaseProfileService.Update(resource.ToModel()); } - private void Delete(int id) + private void DeleteById(int id) { _releaseProfileService.Delete(id); }