public void EditUser(int id, string username, string password, string email) { using (SqlConnection connection = new SqlConnection(connectionString)) { SqlCommand command = new SqlCommand(UserQueries.EditUser(id, username, password, email), connection); connection.Open(); try { command.ExecuteNonQuery(); } catch (SqlException e) { throw e; } } }