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)); }
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)); }