I am trying to submit some values from a form to my mvc controller.
Here is my controller:
//Post/ Roles/AddUser [HttpPost] public Ac
I see in your code that you are trying to pass an ARRAY to POST action. In that case follow below working code -
And the controller action is going to be -
public ActionResult AddUser(List Roles) { return null; }
Then when you click on the button -