Пример #1
0
 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);
 }
Пример #2
0
 public bool addRunner(RegistroCorrida runner)
 {
     try
     {
         this.runners.Add(runner);
     }
     catch (Exception e)
     {
         return(false);
     }
     return(true);
 }