Ejemplo n.º 1
0
        public async Task StopTrainingAsync(int trainingId)
        {
            Training training = await trainings.GetAsync(trainingId);

            if (training == null)
            {
                throw new NotFoundException("Training doesn't exist!");
            }
            await trainings.StopCurrentTrainingForTeamAsync(training.TeamId);
        }