public static Address ToDto(Db.Address address) { return address == null ? null : new Address { AddressId = address.AddressId, City = address.City, Country = address.Country, State = address.State, StreetAddress = address.StreetAddress, Zip = address.Zip, UserId = address.UserId }; }