public virtual ApiProductCategoryResponseModel MapBOToModel(
            BOProductCategory boProductCategory)
        {
            var model = new ApiProductCategoryResponseModel();

            model.SetProperties(boProductCategory.ProductCategoryID, boProductCategory.ModifiedDate, boProductCategory.Name, boProductCategory.Rowguid);

            return(model);
        }
Exemple #2
0
        public virtual BOProductCategory MapEFToBO(
            ProductCategory ef)
        {
            var bo = new BOProductCategory();

            bo.SetProperties(
                ef.ProductCategoryID,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid);
            return(bo);
        }
Exemple #3
0
        public virtual ProductCategory MapBOToEF(
            BOProductCategory bo)
        {
            ProductCategory efProductCategory = new ProductCategory();

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

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