public async Task <IActionResult> getStatsByKey(Guid workoutId, string key) { if (workoutId == null || key == null) { return(NotFound()); } User user = _userService.GetByEmail(User.Identity.Name); var workoutOptionsByKey = await _workoutService.GetWorkoutOptionByKey(user, workoutId, key); return(Ok(workoutOptionsByKey)); }