using System; using System.Collections.Generic; using System.Text; using Tango.BLL.Objects; using Tango.DAL.Entities; namespace Tango.BLL.Mappers { public class OrganizationToOrganizationEntityMapper : MapperBase { public override void Map(Organization source, OrganizationEntity target) { target.ID = source.ID; target.Name = source.Name; new AddressToAddressModelMapper().Map(source.Address, target.Address); new ContactToContactModelMapper().Map(source.Contact, target.Contact); } public override void Map(OrganizationEntity source, Organization target) { target.ID = source.ID; target.Name = source.Name; new AddressToAddressModelMapper().Map(source.Address, target.Address); new ContactToContactModelMapper().Map(source.Contact, target.Contact); } } }