Esempio n. 1
0
        public ProductInfo GetProductForEdit(int p_id)
        {
            ProductInfo info   = new ProductInfo();
            IDataReader reader = db.GetProductForEdit(p_id).CreateDataReader();

            if (reader.Read())
            {
                reader.Read();
                info = ProductInfo.Populate(reader);
            }
            return(info);
        }