public JsonResult Datatable(DatatableParam param) { var people = _people.All().Include(p => p.Address); var sessionObject = Session.GetDatatableProperties<Person>(param.DatatableId); var parser = new DatatableParser<Person>(people, sessionObject); return parser.Parse(param).ToJson(); }
public JsonResult Datatable(DatatableParam param) { var people = _people.All().Include(p => p.Address); var sessionObject = Session.GetDatatableProperties <Person>(param.DatatableId); var parser = new DatatableParser <Person>(people, sessionObject); return(parser.Parse(param).ToJson()); }