What are the ASP.NET MVC conventions?

I read in several places that ASP.NET MVC uses "configuration conventions".
I specifically read JohnnyCoder 's post about this issue, where he states a specific convention (the name of the view that is returned by the controller), which:

If you are not familiar with this convention and you adhere to it, the code may be a bit confusing


He also discusses another convention - where opinions should be located if they should be used by the controller.

So, I was wondering - what other agreements should I know about?
How bad is it if I don’t stick to the convention (because I don’t know about it or because I decided) - can this crash my application or worse, my code is "confused"?

I need me to be a complete noob in ASP.NET MVC.

Thanks in advance.

+3
source share
1 answer

the controller class name must always end with "Controller" , i.e. HomeController ...

which will blow if you do not follow it.

+1
source

Source: https://habr.com/ru/post/1764982/


All Articles