How to return multiple variables on JsonResult method
for example i want to return this two variables:
string result = \"Successed\"; string ID = \"
You should return an object with multiple properties:
return Json(new { result, ID });
The JSON serializer will convert C# anonymous types into JSON object literals.