Why .cshtml file don't see @model in .cshtml.cs file and i get Null References exception? – Ubuntu
I've created an ASP.NET Core 6 MVC project, and I want to see "Test" when i request it but I'm getting NullReferenceException. But when I create the Razor pages application and try the same thing on that project, I don't…