Please briefly describe about action verb used in MVC with an example.
Define Action Verbs in Asp.Net MVC with an example?
437
04-Feb-2020
Updated on 04-Feb-2020
Nishi Tiwari
04-Feb-2020This ActionVerbs in MVC is used to control the selection of an action method based on the Http request method like POST, GET, DELETE, etc. Sometimes we want the same Action Method to perform on more than one Http Request then at that time we can use Action Verbs attribute which would be shown like below
In Above Home() method will support both get and post requests in MVC. The following example to use Action Verbs in controller action methods in MVC