How can we detect that an mvc controller is called by post or get?
Answer Posted / Tarkeshwar Prasad
In MVC, you can detect whether a controller action is called via GET or POST by checking the HttpRequest object's httpMethod property. For example: `if (request.HttpMethod == "POST") { ... }`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers