protected void AddGameBtn_Click(object sender, EventArgs e) { TestGameRepository testGame = new TestGameRepository(); gameRating = DropDownList1.SelectedValue.ToString(); gameName = TextBox1.Text; Games newGame = new Games(); newGame.GameName = gameName; newGame.GameRating = gameRating; newGame.IsCheckedOut = false; newGame.CheckedOutTo = string.Empty; testGame.Add(newGame); GridView1.DataSource = testGame.GetItems(); GridView1.DataBind(); }