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

            return(_mapper.Map <IEnumerable <ZoneDto> >(zones));;
        }