public ActionResult AddMembers(string type, string[] statetrue, string[] statefalse) { if (statetrue != null) { foreach (string Id in statetrue) { SignUp.AddToRole(Id, type); } } if (statefalse != null) { foreach (string Id in statefalse) { SignUp.RemoveFromRole(Id, type); } } return(Json(new { Success = true }, JsonRequestBehavior.AllowGet)); }