public void DeleteUserFriend(User u, int?id) { using (SqlConnection connection = new SqlConnection(connectionString)) { SqlCommand command = new SqlCommand(UserQueries.DeleteUserFriend(u, id), connection); connection.Open(); try { command.ExecuteNonQuery(); } catch (SqlException e) { throw e; } } }