using System; using System.Collections.Generic; using System.Text; using Tango.BLL.Objects; using Tango.DAL.Models; namespace Tango.BLL.Mappers { public class ContactToContactModelMapper : MapperBase { public override void Map(Contact source, ContactModel target) { target.Email = source.Email; target.Fax = source.Fax; target.FirstName = source.FirstName; target.FullName = source.FirstName + " " + source.LastName; target.LastName = source.LastName; target.PhoneNumber = source.PhoneNumber; } public override void Map(ContactModel source, Contact target) { target.Email = source.Email; target.Fax = source.Fax; target.FirstName = source.FirstName; target.LastName = source.LastName; target.PhoneNumber = source.PhoneNumber; } } }