Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }