public static PropertyAddressDTO MapFieldValues(EF.PropertyAddress dbItem) { if (dbItem == null) return null; PropertyAddressDTO dto = new PropertyAddressDTO() { Apt = dbItem.Apt, City = dbItem.City, HouseNum = dbItem.HouseNum, Pin = dbItem.Pin, Street = dbItem.Street, StreetDir = dbItem.StreetDir, Suffix = dbItem.Suffix, Zip = dbItem.Zip }; return dto; }
public virtual IPropertyAddress Create(PropertyAddressDTO dto) { return new PropertyAddress(dto); }
public PropertyAddress(PropertyAddressDTO data) { this.Data = data; }