private void DisplayData() { using (var context = new IdeaAppDbContext()) { this.GridView1.DataSource = context.Ideas.ToList(); this.GridView1.DataBind(); } }
public BaseRepository() { db = new IdeaAppDbContext(); }