Error with an ASP.Net Core RazorPages/SQL Server app

I am developing a SQL Server/ASP.Net Core RazorPages version of an existing app.
At present, I get a compile error saying an unexpected character "}" is found, yet when I take that character out and try again, I get an error saying that same character is expected.
Also, in the app, I have a distinct model for each table(one of which correlates to a series of interactive windows, each of which is used to input or display a portion of the input fields from the table. However, the compile messages seem to tell me I need a separate model for each window, instead of just one for each table.
The two tables were inserted as part of a larger corporate database.
Any help would be much appreciated.