Exemplo n.º 1
0
        private bool IsSelectedProductRegistered()
        {
            bool blnResult;

            blnResult = RegistrationDB.ProductRegistered((int)(cboCustomers.SelectedValue),
                                                         (string)cboProducts.SelectedValue);

            if (!blnResult)
            {
                Validator.ShowError("The selected product is not registered for this customer");
            }

            return(blnResult);
        }