public IActionResult GetAll() { var workouts = _workoutService.GetAll(); var model = _mapper.Map <IList <UpdateModel> >(workouts); return(Ok(model)); }
public async Task <ActionResult <IEnumerable <WorkoutListingModel> > > GetAll() => await workoutService.GetAll();
public IActionResult GetAll() { var workouts = _workoutService.GetAll(); return(Ok(workouts)); }
public async Task <IActionResult> Get() { return(await HandleComputationFailure(_workoutService.GetAll())); }