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

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