public bool Save(ProductModel productModel)
        {
            int rowAffected = _productModelRepository.Save(productModel);

            bool isSaved = rowAffected > 0;

            return(isSaved);
        }
예제 #2
0
        public bool Save(ProductModel obj)
        {
            // save code ...

            int  rowAffected = _Repository.Save(obj);
            bool isSaved     = rowAffected > 0;

            return(isSaved);
        }