Song's id no longer changed when updating the song #48

This commit is contained in:
amazing-username
2019-05-25 22:19:14 +00:00
parent c8578ae8c8
commit 801a60e631
6 changed files with 57 additions and 72 deletions
+3 -1
View File
@@ -126,7 +126,9 @@ namespace Icarus.Controllers
.RequestServices
.GetService(typeof(YearStoreContext)) as YearStoreContext;
var songMetaData = context.GetSong(id);
var songMetaData = new Song{ Id = id };
Console.WriteLine($"Id {songMetaData.Id}");
songMetaData = context.GetSong(songMetaData);
if (string.IsNullOrEmpty(songMetaData.Title))
{