using System; using System.Collections.Generic; using System.Text; using Tango.BLL.Objects; using Tango.DAL.Models; namespace Tango.BLL.Mappers { public class AddressToAddressModelMapper : MapperBase { public override void Map(Address source, AddressModel target) { target.AddressString = source.AddressString; target.City = source.City; target.CountryCode = source.CountryCode; target.Locality = source.Locality; target.PostalCode = source.PostalCode; target.State = source.State; } public override void Map(AddressModel source, Address target) { target.AddressString = source.AddressString; target.City = source.City; target.CountryCode = source.CountryCode; target.Locality = source.Locality; target.PostalCode = source.PostalCode; target.State = source.State; } } }