Currently am making a jQuery ajax call to MVC method and sending data from Controller in the below format:
["UserInfo ID","User ID"]
Controller code:
var autoSuggestlist;
........
.
return Json(autoSuggestlist, JsonRequestBehavior.AllowGet);
Now I want to add another different data like:
[ {"editable":true,"edittype":"integer","index":"userInfoId" ]
How I can send these 2 different datas in Controller to jQuery Ajax
In the below code
$.ajax(
{
type: "GET",
url: "/Home/GetColumnNamesForGrid",
data: "",
dataType: "json",
async: false,
success: function (result) {
result should get me both the above JSON data. How do I need to modify my Controller Code. Please assist
Thanks