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
+2 -1
View File
@@ -73,7 +73,8 @@ namespace Icarus.Controllers
.RequestServices
.GetService(typeof(MusicStoreContext)) as MusicStoreContext;
Song song = context.GetSong(id);
Song song = new Song { Id = id };
song = context.GetSong(song);
Console.WriteLine("Here");