Ejemplo n.º 1
0
        public ActionResult Modificar(Player jugador,int year, string team)
        {
            //HttpContext.Request.Params
            ServicioEquipos.SrvEquiposClient cliente = new ServicioEquipos.SrvEquiposClient();
            cliente.RellenarJugador(jugador);

            RouteValueDictionary routeData = new RouteValueDictionary();
            routeData.Add("year", year);
            routeData.Add("team", team);
            ViewBag.error = true;
            //return RedirectToAction("Index", "Equipo",routeData);
            return View("JugadorForm",jugador);
        }
Ejemplo n.º 2
0
 public ActionResult UpDate(Player jugador)
 {
     ServicioEquipos.SrvEquiposClient cliente = new ServicioEquipos.SrvEquiposClient();
     cliente.RellenarJugador(jugador);
     return View("Index");
 }