How can we detect that an MVC controller is called by POST or GET?

Experience Level: Junior
Tags: .NET ASP.NET MVC ASP.NET WebAPI

Answer

Related ASP.NET MVC job interview questions
.NET developer ASP.NET MVC 1
.NET developer ASP.NET MVC 1

Are you learning ASP.NET MVC? Try our test we designed to help you progress faster.

Test yourself