public async Task <ActionResult <IEnumerable <ScooterDomainModel> > > GetAll() { var result = await _scooterService.GetAll(); if (result == null) { return(NotFound()); } return(Ok(result.Select(ToScooterResponse))); }
public async Task <ActionResult <IEnumerable <ScooterDomainModel> > > GetAll() { var result = await _scooterService.GetAll(); if (result == null) { return(NotFound()); } return(Ok(result.Select(ToScooterResponse))); }