How to specify GET and POST request for same action in Controller MVC Visual Studio     &nbs

How to specify GET and POST request for same action in Controller MVC Visual Studio            &n
Generic placeholder image

Mukesh R

How to specify GET and POST request for same action in Controller MVC Visual Studio

 
               We can use below code to represent GET and POST for same action,AcceptVerbs helps to Represent an attribute that specifies which HTTP quests that can accept.
 
[AcceptVerbs(HttpVerbs.Get|HttpVerbs.Post)]