Exemplo n.º 1
0
        public virtual BOProductProductPhoto MapEFToBO(
            ProductProductPhoto ef)
        {
            var bo = new BOProductProductPhoto();

            bo.SetProperties(
                ef.ProductID,
                ef.ModifiedDate,
                ef.Primary,
                ef.ProductPhotoID);
            return(bo);
        }
        public virtual BOProductProductPhoto MapModelToBO(
            int productID,
            ApiProductProductPhotoRequestModel model
            )
        {
            BOProductProductPhoto boProductProductPhoto = new BOProductProductPhoto();

            boProductProductPhoto.SetProperties(
                productID,
                model.ModifiedDate,
                model.Primary,
                model.ProductPhotoID);
            return(boProductProductPhoto);
        }