public ActionResult Put(int id, [FromBody] Cat_Jugadores value) { if (id != value.Id_Jugador) { return(BadRequest()); } context.Entry(value).State = EntityState.Modified; context.SaveChanges(); return(Ok()); }
public ActionResult Post([FromBody] Cat_Jugadores jugador) { context.Cat_Jugadores.Add(jugador); context.SaveChanges(); return(Ok()); }