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();
 }
Example #2
0
        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());
        }