Пример #1
0
        public Task <TrainingSchedule> CreateAsync(TrainingSchedule trainingSchedule)
        {
            _context.TrainingSchedules.Add(trainingSchedule);
            _context.SaveChangesAsync();

            return(Task.FromResult(trainingSchedule));
        }
        public Task <Exercise> CreateAsync(Exercise exercise)
        {
            _context.Exercises.Add(exercise);
            _context.SaveChangesAsync();

            return(Task.FromResult(exercise));
        }
        public Task <Workout> CreateAsync(Workout workout)
        {
            _context.Workouts.Add(workout);
            _context.SaveChangesAsync();

            return(Task.FromResult(workout));
        }