I have got it, its answer. Details explanation is below:
We can restrict the MVC action with the HttpGet or HttpPost attribute to restrict the type of HTTP calls. For example,In below code DisplayStudent action can only be invoked by HttpGet. If we try to make HTTP POST on DisplayStudent, it will throw an error.
How can we restrict MVC actions to be invoked only by GET or POST?
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Anupam Mishra
14-Feb-2016