We can
decorate the MVC action by “HttpGet” or “HttpPost” attribute to restrict the
type of HTTP calls. For instance you can see in the below code snippet the
“DisplayCustomer” action can only be invoked by “HttpGet”. If we try to make
Http post on “DisplayCustomer” it will throw a error.
Below is an important
c# interview question and answers video
: -
Difference between viewstate and session ?
Do visit us for c# and ASP.NET MVC interview question and
answers
See more stuffs ASP.NET(MVC)/C# interview questions
Regards,
Click here to view more c# and .NET MVC
interview question and answers