public async Task <IActionResult> Edit(int id, [Bind("Id,Numero,Nombre,FechaNacimiento,Posicion,Club,Altura,Idsel")] Judador judador) { if (id != judador.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(judador); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!JudadorExists(judador.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(judador)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Fecha,Local,Visita,Marcador,Idest")] Partido partido) { if (id != partido.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(partido); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PartidoExists(partido.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(partido)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Nombre,Nacionalidad")] Directort directort) { if (id != directort.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(directort); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DirectortExists(directort.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(directort)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Nombre,Ciudad,Capacidad")] Estadio estadio) { if (id != estadio.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(estadio); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!EstadioExists(estadio.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(estadio)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Nombre,Grupo,Confederacion,Iddt")] Seleccion seleccion) { if (id != seleccion.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(seleccion); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SeleccionExists(seleccion.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(seleccion)); }