public IActionResult Index() { _logAutor = new LogicAutor(); List <Autor> Aut = _logAutor.ListaAutores(_con); return(View(Aut)); }
public IActionResult Create(string Codigo, string Nombres, string Paterno, string Materno, string Correo, int CreditosAprobados, string GradoAcademico) { _logAutor = new LogicAutor(); Autor autor = new Autor { Codigo = Codigo, Nombres = Nombres, Paterno = Paterno, Materno = Materno, Correo = Correo, CreditosAprobados = CreditosAprobados, GradoAcademico = GradoAcademico, }; _logAutor.AddAutor(_con, autor); return(RedirectToAction("Index", "Autor")); }
public ActionResult Create() { _logRama = new LogicRama(); _logAutor = new LogicAutor(); _logEtapa = new LogicEtapaDeTesis(); _logAsesor = new LogicAsesor(); List <RamaInvestigacion> Ramas = _logRama.ListaRamas(_con); ViewBag.Ramas = Ramas; List <Autor> Tesistas = _logAutor.ListaAutores(_con); ViewBag.Autores = Tesistas; List <Asesor> Asesores = _logAsesor.ListaAsesores(_con); ViewBag.Asesores = Asesores; List <EtapaDeTesis> Etapas = _logEtapa.ListaEtapas(_con); ViewBag.Etapas = Etapas; return(View()); }