public bool DeleteProduct(Products product)
        {
            ProductsDAO dao   = new ProductsDAO();
            bool        error = false;

            if (product != null)
            {
                if (dao.CountProductOrder(product) > 0)
                {
                    error = true;
                }
                if (dao.CountProductSales(product) > 0)
                {
                    error = true;
                }

                if (!error)
                {
                    dao.DeleteProduct(product);
                }
                else
                {
                    dao.ChangeProductActivated(product, false);
                }
                return(true);
            }
            return(false);
        }