public virtual BOAddress MapEFToBO( Address ef) { var bo = new BOAddress(); bo.SetProperties( ef.AddressID, ef.AddressLine1, ef.AddressLine2, ef.City, ef.ModifiedDate, ef.PostalCode, ef.Rowguid, ef.StateProvinceID); return(bo); }
public virtual BOAddress MapModelToBO( int addressID, ApiAddressRequestModel model ) { BOAddress boAddress = new BOAddress(); boAddress.SetProperties( addressID, model.AddressLine1, model.AddressLine2, model.City, model.ModifiedDate, model.PostalCode, model.Rowguid, model.StateProvinceID); return(boAddress); }