private void comboBoxSessionList_Click(object sender, EventArgs e) { var saloon_name = comboBoxSaloonList.Text.ToString(); int saloon_id = db.Saloon.Where(k => k.Name == saloon_name).First().ID; comboBoxSessionList.DataSource = ses.Ses_List(saloon_id); }