public void FillSO() { ExpenseRepository repo = new ExpenseRepository(); List <Dropdown> list = repo.FillSO(); ViewBag.SO = new SelectList(list, "Id", "Name"); }