public ActionResult <FetchAddressesResponse> GetAddresss()
        {
            var fetchAddresssRequest  = new FetchAddressesRequest {
            };
            var fetchAddresssResponse = _addressService.GetAddresses(fetchAddresssRequest);

            return(fetchAddresssResponse);
        }
Exemplo n.º 2
0
        public FetchAddressesResponse GetAddresses(FetchAddressesRequest fetchAddresssRequest)
        {
            var addresss    = _addressRepository.GetAllAddresses();
            var addressDtos = _messageMapper.MapToAddressDtos(addresss);

            return(new FetchAddressesResponse
            {
                Addresses = addressDtos
            });
        }