using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using prueba1.Models; namespace prueba1.Controllers { public class SemestreAcademicoController : Controller { public IActionResult Index() { List<SemestreAcademico> semestres = new List<SemestreAcademico>() { new SemestreAcademico(){id=1,nombre="2019-0" }, new SemestreAcademico(){id=1,nombre="2018-0" }, new SemestreAcademico(){id=1,nombre="2017-0" }, new SemestreAcademico(){id=1,nombre="2016-0" }, new SemestreAcademico(){id=1,nombre="2015-0" }, }; return View(semestres); } public IActionResult CrearSemestreAcademico() { return View(); } public IActionResult crear(SemestreAcademico Semestre) { List<SemestreAcademico> semestres = new List<SemestreAcademico>(); semestres.Add(Semestre); return View("Index", semestres); } public IActionResult ListarSemestreAcademico() { return View(); } public IActionResult AgreagarSemestre() { return View(); } public IActionResult VerEliminado() { return View(); } } }