Example #1
0
 static public Address GetAddress(int id)
 {
     try
     {
         Address address = AddressDataManager.GetAddress(id);
         address.Country = CountryDataManager.GetCountry(address.Country.Id);
         address.City    = CityDataManager.GetCity(address.City.Id);
         address.Street  = StreetDataManager.GetStreet(address.Street.Id);
         return(address);
     }
     catch (Exception ex)
     {
         _logger.Debug($"Failed to get adddress {id}.", ex);
         throw;
     }
 }