[HttpPost]
public ActionResult Login()
{
var form = JsonConvert.DeserializeObject<dynamic>(new StreamReader(Request.InputStream).ReadToEnd());
string username = form.username;
string password = form.password;
....
}
x1
[HttpPost]2
public ActionResult Login()3
{4
var form = JsonConvert.DeserializeObject<dynamic>(new StreamReader(Request.InputStream).ReadToEnd());5
string username = form.username;6
string password = form.password;7
....8
}