Exemple #1
0
 public Training GetTraining(int?id)
 {
     //Demo Purpose only. Technically you should make a call to the database and grab the only id
     return(Trainings.FirstOrDefault(x => x.Id == id));
 }
Exemple #2
0
        public static void AddTraining(FakeTraining _training)
        {
            var training = Trainings.FirstOrDefault(t => t.Id == _training.Id);

            training = _training;
        }