Example #1
0
        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);
        }
Example #2
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);
        }
Example #3
0
        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);
        }
Example #4
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);
        }