public IActionResult Index() { GremioContext context = HttpContext.RequestServices.GetService(typeof(GremioContext)) as GremioContext; var gremios = context.getGremios(); return(View(gremios)); }
public IActionResult editar(string id) { DisciplinaContext disciplina = HttpContext.RequestServices.GetService(typeof(DisciplinaContext)) as DisciplinaContext; GremioContext gremio = HttpContext.RequestServices.GetService(typeof(GremioContext)) as GremioContext; ViewBag.disciplinas = disciplina.getDisciplinas(); ViewBag.gremios = gremio.getGremios(); EquipoContext context = HttpContext.RequestServices.GetService(typeof(EquipoContext)) as EquipoContext; ViewBag.equipo = context.detallesEquipo(id); return(View()); }
public IActionResult Nuevo(string result) { if (result != null) { ViewBag.result = result; } DisciplinaContext disciplina = HttpContext.RequestServices.GetService(typeof(DisciplinaContext)) as DisciplinaContext; GremioContext gremio = HttpContext.RequestServices.GetService(typeof(GremioContext)) as GremioContext; ViewBag.disciplinas = disciplina.getDisciplinas(); ViewBag.gremios = gremio.getGremios(); return(View()); }