示例#1
0
        public bool Update(ProductType productType)
        {
            bool result = _productTypeDal.Update(productType);

            if (result)
            {
                return(true);
            }

            return(false);
        }
示例#2
0
        public void Save(ProductType productType)
        {
            if (productType.ShoudBeCreated)
            {
                _productTypeDal.Create(productType);
            }

            else
            {
                _productTypeDal.Update(productType);
            }
        }
 public void Update(ProductType productType)
 {
     _productTypeDal.Update(productType);
 }