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

            await _workoutService.RemoveWorkoutAsync(workoutId);

            return(NoContent());
        }