public static bool DeleteProduct(int productid)
 {
     bool result = true;
     using (ProductManager productManager = new ProductManager(null))
     {
         try
         {
             productManager.Delete(productManager.GetProduct(productid));
         }
         catch (System.Data.SqlClient.SqlException e)
         {
             result = false;
         }
     }
     return result;
 }