Exemplo n.º 1
0
        public void Pay(string id)
        {
            IDbProduct product     = DbProductFactory.Create();
            var        productData = product.GetProductById(id);

            Console.WriteLine(productData);
        }
Exemplo n.º 2
0
 /// <summary>
 /// The constructor for Product controller
 /// </summary>
 /// <param name="dbProduct"></param>
 public ProductCtr(IDbProduct dbProduct)
 {
     DbProduct = dbProduct;
 }