I have this error when I use the create function in my application: The INSERT statement conflicted with the FOREIGN KEY constraint ‘PK_dbo.Books_dbo_Genres_GenreId’
I tried to change the db.savechanges code but it did not work.
Here is a link to my project code: Google drive: https://drive.google.com/open?id=1kTzU3AkAw4z-mMkIOh8WLrNxMhmKkrxO
can someone please take a look? I attached the code. If you run the application and click on admin -> book -> create -> then fill out the information and click submit it gives me the error stated above.