Exemplo n.º 1
0
        public async Task <IActionResult> ReadAllAsync()
        {
            var workouts = await _workoutService.ReadAllAsync();

            return(Ok(workouts));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var viewModel = await _workoutService.ReadAllAsync();

            return(View(viewModel));
        }