public virtual ApiAddressTypeResponseModel MapBOToModel( BOAddressType boAddressType) { var model = new ApiAddressTypeResponseModel(); model.SetProperties(boAddressType.AddressTypeID, boAddressType.ModifiedDate, boAddressType.Name, boAddressType.Rowguid); return(model); }
public virtual BOAddressType MapEFToBO( AddressType ef) { var bo = new BOAddressType(); bo.SetProperties( ef.AddressTypeID, ef.ModifiedDate, ef.Name, ef.Rowguid); return(bo); }
public virtual AddressType MapBOToEF( BOAddressType bo) { AddressType efAddressType = new AddressType(); efAddressType.SetProperties( bo.AddressTypeID, bo.ModifiedDate, bo.Name, bo.Rowguid); return(efAddressType); }
public virtual BOAddressType MapModelToBO( int addressTypeID, ApiAddressTypeRequestModel model ) { BOAddressType boAddressType = new BOAddressType(); boAddressType.SetProperties( addressTypeID, model.ModifiedDate, model.Name, model.Rowguid); return(boAddressType); }