예제 #1
0
        public string Create(Product product)
        {
            var result = _productData.Create(product);

            if (result > 0)
            {
                return(string.Format(" Product created; code {0}, price {1}, stock {2}",
                                     product.ProductCode, product.Price, product.Stock));
            }
            return(null);
        }