Esempio n. 1
0
        public virtual BOProductModel MapEFToBO(
            ProductModel ef)
        {
            var bo = new BOProductModel();

            bo.SetProperties(
                ef.ProductModelID,
                ef.CatalogDescription,
                ef.Instruction,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid);
            return(bo);
        }
Esempio n. 2
0
        public virtual BOProductModel MapModelToBO(
            int productModelID,
            ApiProductModelRequestModel model
            )
        {
            BOProductModel boProductModel = new BOProductModel();

            boProductModel.SetProperties(
                productModelID,
                model.CatalogDescription,
                model.Instruction,
                model.ModifiedDate,
                model.Name,
                model.Rowguid);
            return(boProductModel);
        }