asked on
public static bool newAcc(string thisUser, string thisEmail, string thisUserID)
{
try
{
using (SqlConnection oConn = new SqlConnection(connectionString))
{
oConn.Open();
using (SqlCommand oComm = oConn.CreateCommand())
{
oComm.Parameters.Clear();
oComm.CommandType = CommandType.StoredProcedure;
oComm.Parameters.AddWithValue("@thisUser", thisUser);
oComm.Parameters.AddWithValue("@thisEmail", thisEmail);
oComm.Parameters.AddWithValue("@thisUserID", thisUserID);
oComm.Parameters.AddWithValue("@datetime", DateTime.Now.ToUniversalTime());
oComm.CommandText = "newUser";
oComm.ExecuteNonQuery();
}
}
return true;
}
catch { return false; }
}