HI all i have a json data which looks like this
[ "Data":[
{"Id":"1 ","EmployeeName":Anil},
]
which i am geting from my controller action
public ActionResult Index()
{
var data = GetData();
return View();
}
public JsonResult GetData()
{
int Param1;
Param1 = 1;
var EmployeeDetails = db.EmployeeDetails.ToList<EmployeeDetail>().Select(e =>
new
{
id=e.EmployeId,
Name = e.EmployeeName
});
return Json(EmployeeDetails , JsonRequestBehavior.AllowGet);
}
now i want this json data to a pie chart..how can i do this
GetData
method...var data = GetData();
is not doing anything.