After looking at this problem for quite a few days, I don't know if the error is related to SQL code, or specifically to being able to store a new record in an SQL Server database.
Everything seems to go fine(though I cannot tell) until the following statement:
dbContext.SaveChanges();
I keep getting the following error message:
Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)'
Any ideas would be greatly appreciated!