Exemple #1
0
        public bool Exist(string userName)
        {
            bool answer = false;

            try
            {
                using (SqlConnection connection = new SqlConnection(ConnectionString))
                {
                    connection.Open();
                    DaAccount daAccount = new DaAccount();
                    answer = daAccount.Exist(connection, userName);
                    connection.Close();
                }
            }
            catch (Exception e)
            {
                RecordLog(e.Message, e.StackTrace);
            }
            return(answer);
        }
Exemple #2
0
        public bool DeleteAccountUnconfirmed()
        {
            bool answer = false;

            try
            {
                using (SqlConnection connection = new SqlConnection(ConnectionString))
                {
                    connection.Open();
                    DaAccount daAccount = new DaAccount();
                    answer = daAccount.DeleteAccountUnconfirmed(connection);
                    connection.Close();
                }
            }
            catch (Exception e)
            {
                RecordLog(e.Message, e.StackTrace);
            }
            return(answer);
        }
        public string GetTypesChange()
        {
            string answer = "";//venta y compra

            using (SqlConnection connection = new SqlConnection(ConnectionString))
            {
                try
                {
                    connection.Open();
                    DaAccount daAccount = new DaAccount();
                    answer = daAccount.GetTypesChange(connection);
                    connection.Close();
                }
                catch (Exception e)
                {
                    answer = "";
                    RecordLog(e.Message, e.StackTrace);
                }
            }
            return(answer);
        }
Exemple #4
0
        public string GetAffiliateName(string userName)
        {
            string answer = "";

            using (SqlConnection connection = new SqlConnection(ConnectionString))
            {
                try
                {
                    connection.Open();
                    DaAccount daAccount = new DaAccount();
                    answer = daAccount.GetAffiliateName(connection, userName);
                    connection.Close();
                }
                catch (Exception e)
                {
                    answer = "";
                    RecordLog(e.Message, e.StackTrace);
                }
            }
            return(answer);
        }
Exemple #5
0
        public string GetUserNotConfirmedPayInitial()
        {
            string answer = "";

            using (SqlConnection connection = new SqlConnection(ConnectionString))
            {
                try
                {
                    connection.Open();
                    DaAccount daAccount = new DaAccount();
                    answer = daAccount.GetUserNotConfirmedPayInitial(connection);
                    connection.Close();
                }
                catch (Exception e)
                {
                    answer = "";
                    RecordLog(e.Message, e.StackTrace);
                }
            }
            return(answer);
        }