You have simple typo/syntax error
return Json(new { total = total, data = data,JsonRequestBehavior.AllowGet });
The JsonRequestBehavior.AllowGet is the second parameter of Json – it shouldnt be part of the object
return Json(new { total = total, data = data }, JsonRequestBehavior.AllowGet);