Model and migration changes

This commit is contained in:
kdeng00
2024-06-20 17:12:10 -04:00
parent 5c913869b4
commit f3eccfd46e
32 changed files with 111 additions and 123 deletions
+2 -2
View File
@@ -23,12 +23,12 @@ public class ArtistContext : DbContext
public Artist RetrieveRecord(Artist artist)
{
return Artists.FirstOrDefault(arst => arst.ArtistID == artist.ArtistID);
return Artists.FirstOrDefault(arst => arst.Id == artist.Id);
}
public bool DoesRecordExist(Artist artist)
{
return Artists.FirstOrDefault(arst => arst.ArtistID == artist.ArtistID) != null ? true : false;
return Artists.FirstOrDefault(arst => arst.Id == artist.Id) != null ? true : false;
}
}