I am trying to submit some values from a form to my mvc controller.
Here is my controller:
//Post/ Roles/AddUser [HttpPost] public Ac
instead of receiving the json string a model binding is better. For example:
[HttpPost] public ActionResult AddUser(UserAddModel model) { if (ModelState.IsValid) { return Json(new { Response = "Success" }); } return Json(new { Response = "Error" }); }