Ejemplo n.º 1
0
 /// <summary>
 /// Updates the product.
 /// </summary>
 /// <param name="hshProd">The HSH prod.</param>
 /// <returns></returns>
 public bool UpdateProduct(Hashtable hshProd)
 {
     bool result = false;
     try
     {
         ProductData myData = new ProductData();
         result = myData.UpdateProduct(hshProd);
     }
     catch (Exception ex)
     {
         ErrorRoutine(ex, "Product", "UpdateProduct");
     }
     return result;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the products.
 /// </summary>
 /// <returns></returns>
 public DataTable GetProducts()
 {
     DataSet mySet = new DataSet();
     try
     {
         ProductData myData = new ProductData();
         mySet = myData.GetProducts();
     }
     catch (Exception ex)
     {
         ErrorRoutine(ex, "Products", "GetProducts");
     }
     return mySet.Tables[0];
 }