Example #1
0
        public async Task <IActionResult> AddRangeAsync(IEnumerable <AddressDto> addressDtos)
        {
            var addressRange = await _addressService.AddRangeAsync(_mapper.Map <IEnumerable <Address> >(addressDtos));

            return(Ok(_mapper.Map <IEnumerable <AddressDto> >(addressRange)));
        }