Hi Experts,
Following are my classes and code which will get the list. But i want to get json in fix format.please help me to solve out this.
public class testActivity
{
public int ActivityId { get; set; }
public string AsstesName { get; set; }
public string AsstesType { get; set; }
public string Email { get; set; }
public List<ActivityAttributeValue> Attribute { get; set; }
}
public class ActivityAttributeValue
{
public string Attribute { get; set; }
public string AttributeValue { get; set; }
}
//This method should return data in json format Mydata = {rows: [{id: 1001,data: ["100","A Time to //Kill","John Grisham","12.99","1","05/01/1998"]};
public JsonResult LodGrid()
{
List<testActivity> myList = new List<testActivity>();
m ...
Go to the complete details ...