Refactoring

This commit is contained in:
kdeng00
2021-12-26 22:17:14 -05:00
parent b529731c95
commit aa0a1ab5fe
8 changed files with 400 additions and 413 deletions
+4 -2
View File
@@ -88,11 +88,13 @@ namespace Icarus.Controllers.V1
Console.WriteLine("Retrieving filepath of song");
_logger.LogInformation("Retrieving filepath of song");
if (!context.DoesRecordExist(song))
if (!_songMgr.DoesSongExist(song))
{
return NotFound(new SongResult
{
Message = "Song does not exist"
Message = "Song does not exist"
});
}
var songRes = _songMgr.UpdateSong(song);