示例#1
0
        public async Task <IActionResult> ResetWorkout(int workoutId)
        {
            await _ownedAuthService.OwnsAsync <Workout>(workoutId, User.GetUserId());

            await _workoutService.ResetWorkoutAsync(workoutId);

            return(NoContent());
        }