Пример #1
0
        public virtual BOProductCategory MapEFToBO(
            ProductCategory ef)
        {
            var bo = new BOProductCategory();

            bo.SetProperties(
                ef.ProductCategoryID,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid);
            return(bo);
        }
        public virtual BOProductCategory MapModelToBO(
            int productCategoryID,
            ApiProductCategoryRequestModel model
            )
        {
            BOProductCategory boProductCategory = new BOProductCategory();

            boProductCategory.SetProperties(
                productCategoryID,
                model.ModifiedDate,
                model.Name,
                model.Rowguid);
            return(boProductCategory);
        }