public async Task <IActionResult> GetRecordsForExercise(short id) { var currentUserId = int.Parse(User.Identity.Name); try { var entities = await _recordService.FindRecordsForExerciseAsync(id, currentUserId); return(Ok(entities)); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }