Ejemplo n.º 1
0
        public IActionResult GetAll()
        {
            var workouts = _workoutService.GetAll();
            var model    = _mapper.Map <IList <UpdateModel> >(workouts);

            return(Ok(model));
        }
Ejemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <WorkoutListingModel> > > GetAll()
 => await workoutService.GetAll();
Ejemplo n.º 3
0
        public IActionResult GetAll()
        {
            var workouts = _workoutService.GetAll();

            return(Ok(workouts));
        }
Ejemplo n.º 4
0
 public async Task <IActionResult> Get()
 {
     return(await HandleComputationFailure(_workoutService.GetAll()));
 }