// This is the Insert method to insert the entered Player_Information item // USAGE: <asp:FormView InsertMethod="InsertItem"> public void InsertItem() { using (_db) { var item = new COMP2007_FInalAssignment.Player_Information(); TryUpdateModel(item); if (ModelState.IsValid) { // Save changes _db.Player_Information.Add(item); _db.SaveChanges(); Response.Redirect("Default"); } } }