public bool updateRunner(RegistroCorrida runner) { try { this.runners[this.runners.IndexOf(this.runners.Single(x => x.numeroCorredor == runner.numeroCorredor))] = runner; } catch (Exception e) { return(false); } return(true); }
public bool addRunner(RegistroCorrida runner) { try { this.runners.Add(runner); } catch (Exception e) { return(false); } return(true); }