Resolved issue with Song record being deleted after updating the metadata records. #37

This commit is contained in:
amazing-username
2019-05-20 00:56:51 -04:00
parent c9e8e2c6da
commit ada7939866
5 changed files with 51 additions and 19 deletions
@@ -46,6 +46,7 @@ namespace Icarus.Controllers.Utilities
public static void PrintMetadata(Song song)
{
Console.WriteLine("\n\nMetadata of the song:");
Console.WriteLine($"Id: {song.Id}");
Console.WriteLine($"Title: {song.Title}");
Console.WriteLine($"Artist: {song.Artist}");
Console.WriteLine($"Album: {song.AlbumTitle}");
@@ -56,6 +57,8 @@ namespace Icarus.Controllers.Utilities
Console.WriteLine($"ArtistId: {song.ArtistId}");
Console.WriteLine($"GenreId: {song.GenreId}");
Console.WriteLine($"YearId: {song.YearId}");
Console.WriteLine($"Song Path: {song.SongPath}");
Console.WriteLine($"Filename: {song.Filename}");
Console.WriteLine("\n");
_logger.Info("Metadata of the song");