public void FillSupplier() { DropdownRepository repo = new DropdownRepository(); var result = repo.SupplyOrderSupplierDropdown(); ViewBag.SupplierList = new SelectList(result, "Id", "Name"); }