예제 #1
0
        /// <summary>
        /// 根据商品ID获取商品
        /// </summary>
        /// <param name="pID">商品ID</param>
        /// <returns></returns>
        public Product GetProductByID(int pID)
        {
            var product = new Product();

            try
            {
                product = dal.GetProductByID(pID);
            }
            catch (Exception ex)
            {
            }
            return(product);
        }