Основные методы
Основные методы
Основные методы
Основные методы
public async Task <IActionResult> PostRange(Guid workoutId, [Bind("IsSet,Order,Repeats,Calories,Sets,Duration,Weight,Name,About")] List <WorkoutExcercise> excercises) { User user = _userService.GetByEmail(User.Identity.Name); excercises.ForEach(o => o.WorkoutId = workoutId); excercises = _workoutService.AddRangeWorkoutExercise(user, excercises); return(Ok(excercises)); }