Ejemplo n.º 1
0
        public static bool checkUserName(string uname)
        {
            SqlCommand command = new SqlCommand("select Cust_id,Cust_mail from [Customer] where Cust_username=@Username");

            command.Parameters.AddWithValue("@Username", uname);

            return(DBlayer.Seldr(command));
        }
Ejemplo n.º 2
0
        public static bool checkEmail(string mail)
        {
            SqlCommand command = new SqlCommand("select Cust_id,Cust_mail from [Customer] where Cust_mail=@email");

            command.Parameters.AddWithValue("@email", mail);

            return(DBlayer.Seldr(command));
        }