private void AddCategoryBtn_Click(object sender, EventArgs e) { DBRequests.MakeRequest(DBRequests.CreateCategory(NewCategoryNameTextBox.Text), (connection, sqlCommand) => { Console.WriteLine(connection); Console.WriteLine(sqlCommand); using (var reader = sqlCommand.ExecuteReader()) { Console.WriteLine(reader); LoadCategories(); } }); }