Exemplo n.º 1
0
        // remove the flower from the database
        public static bool removeFlower(int id)
        {
            // database connection variables and info

            Database_Manager db = new Database_Manager();

            // try to open the database and delete
            try
            {
                // connect to DBMngr and execute the delete flower function
                db.DeleteFlower(id);
                return(true);
            }
            // if error is thrown, return false
            catch (Exception ex)
            {
                return(false);
            }
        }