How to receive JSON as an MVC 5 action method parameter
I have been trying the whole afternoon crawling through the web trying to receive a JSON object in the action controller.
I have been trying the whole afternoon crawling through the web trying to receive a JSON object in the action controller.
Can anybody please tell me why should I use the NonAction attribute? I mean say I have a form with several submit values: Update, Delete or Insert. Since all the submit buttons have the same form in common I’m switching the submit value inside the controller and act accordingly.