private void beerCategory_Click(object sender, EventArgs e) { ShowSpecificBeer(); ProductContext context = new ProductContext(); var categoryName = ((Button)sender).Tag as string; var idList = this.categoryNameWithId[categoryName]; this.beersViewControl.SetBeer(context.GetBeers(idList, categoryName)); }