Ejemplo n.º 1
0
        public GolesController()
        {
            SegundaEDAPW3Entities context = new SegundaEDAPW3Entities();

            servicio        = new GolesServicio(context);
            servicioJugador = new JugadorServicio(context);
        }
Ejemplo n.º 2
0
        public ActionResult Eliminar(int id)
        {
            var sj = new JugadorServicio();

            sj.Eliminar(id);

            return(RedirectToAction("Listado", "Jugador"));
        }
Ejemplo n.º 3
0
        public void Inicializar()
        {
            var _options = new DbContextOptionsBuilder <CoreContext>()
                           .UseInMemoryDatabase(databaseName:  Guid.NewGuid().ToString())
                           .Options;

            _jugadorRepositorio = new JugadorRepositorio(new CoreContext(_options));
            _jugadorServicio    = new JugadorServicio(_jugadorRepositorio);
        }
Ejemplo n.º 4
0
        private DirectorTecnicoAltaVM ObtenerDirectorTecnicoAltaVM()
        {
            List <Jugador>        arqueros = JugadorServicio.ObtenerArqueros();
            DirectorTecnicoAltaVM model    = new DirectorTecnicoAltaVM();

            model.Arqueros = arqueros;

            return(model);
        }
Ejemplo n.º 5
0
 public ActionResult AltaArquero(Arquero arquero)
 {
     JugadorServicio.Crear(arquero);
     //Request["PenalesAtajados"];
     return(View());
 }