ASP.NET MVC Can I have a controller called PropertiesController?

I am trying to find out asp.net MVC.

I created a model called Property, then created a controller called PropertiesController. However, when I run my code, I get a 403 error when going to / Properties

If I rename my controller to Properties1Controller and go to / Properties 1, it will work.

I assume that there is a conflict between the name of my controller and the Properties folder (mine contains AssemblyInfo.cs).

Is there a way around this or is it better to avoid controllers called properties?

+4
source share
1 answer

. Properties, AssemblyInfo.cs. .

, , , - .

+6

All Articles