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); }
public ActionResult UpDate(Player jugador) { ServicioEquipos.SrvEquiposClient cliente = new ServicioEquipos.SrvEquiposClient(); cliente.RellenarJugador(jugador); return View("Index"); }