public async Task <IActionResult> ReadAllAsync() { var workouts = await _workoutService.ReadAllAsync(); return(Ok(workouts)); }
public async Task <IActionResult> Index() { var viewModel = await _workoutService.ReadAllAsync(); return(View(viewModel)); }