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.
Customer objCustomer = Customers[id];
Below is an important c# interview question and