public virtual ApiStoreResponseModel MapBOToModel( BOStore boStore) { var model = new ApiStoreResponseModel(); model.SetProperties(boStore.BusinessEntityID, boStore.Demographic, boStore.ModifiedDate, boStore.Name, boStore.Rowguid, boStore.SalesPersonID); return(model); }
public virtual BOStore MapEFToBO( Store ef) { var bo = new BOStore(); bo.SetProperties( ef.BusinessEntityID, ef.Demographic, ef.ModifiedDate, ef.Name, ef.Rowguid, ef.SalesPersonID); return(bo); }
public virtual Store MapBOToEF( BOStore bo) { Store efStore = new Store(); efStore.SetProperties( bo.BusinessEntityID, bo.Demographic, bo.ModifiedDate, bo.Name, bo.Rowguid, bo.SalesPersonID); return(efStore); }
public virtual BOStore MapModelToBO( int businessEntityID, ApiStoreRequestModel model ) { BOStore boStore = new BOStore(); boStore.SetProperties( businessEntityID, model.Demographic, model.ModifiedDate, model.Name, model.Rowguid, model.SalesPersonID); return(boStore); }