public async Task <IActionResult> GetAllZones(ZonesGetAllRequest request) { return(await HandleRequestAsync(request)); }
public async Task <IEnumerable <ZoneDto> > Handle(ZonesGetAllRequest request, CancellationToken cancellationToken) { var zones = await _zoneRepository.GetAllAsync(); return(_mapper.Map <IEnumerable <ZoneDto> >(zones));; }