コード例 #1
0
        public JsonResult PoblarGrilla(DataTableAjaxPostModel model)
        {
            List <Alumno> lista = new List <Alumno>();

            try
            {
                lista = AlumnoRepository.getAlumnosByIdPlanilla(model.param1);
            }
            catch { }


            return(Json(new
            {
                // this is what datatables wants sending back
                draw = model.draw,
                recordsTotal = lista.Count,
                recordsFiltered = lista.Count,
                data = lista
            }));
        }