Cannot convert object, recieved from ajax call, into a long
- by Matt
I'm using Asp.Net-Mvc, I have this method in my controller:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult LinkAccount(string site, object id)
{
return this.Json(id);
}
Here's the ajax method that calls it:
$.post("/Account/LinkAccount", { site: "Facebook",
id:…