public ActionResult Nota_x_Grado(int?page) { CustomHelper.setTitulo("Grado", "Notas"); List <GradoxCicloModel> Grados = new List <GradoxCicloModel>(); try { Grados = new MaestroBL().ObtenerGradoxId(CustomHelper.getColegioId(), CustomHelper.getID()); } catch (Exception ex) { ViewBag.Error = string.Format("Message: {0} StackTrace: {1}", ex.Message, ex.StackTrace); return(View("~/Views/Shared/Error.cshtml")); } int pageSize = 15; int pageNumber = (page ?? 1); return(View(Grados.ToPagedList(pageNumber, pageSize))); }
public ActionResult Curso_Actitudinal(int?page) { CustomHelper.setTitulo("Maestro(a)", "Cursos Actitudinal Asignados"); List <CursoMaestroModel> Cursos = new List <CursoMaestroModel>(); try { Cursos = new MaestroBL().ObtenerCursosAsignadoxID(CustomHelper.getColegioId(), CustomHelper.getID(), 1); } catch (Exception ex) { ViewBag.Error = string.Format("Message: {0} StackTrace: {1}", ex.Message, ex.StackTrace); return(View("~/Views/Shared/Error.cshtml")); } int pageSize = 15; int pageNumber = (page ?? 1); return(View(Cursos.ToPagedList(pageNumber, pageSize))); }