public void FillItem() { DropdownRepository Repo = new DropdownRepository(); var List = Repo.FillItem(); ViewBag.ItemList = new SelectList(List, "Id", "Name"); }
public void FillItem() { DropdownRepository Repo = new DropdownRepository(); var List = Repo.FillItem(); ViewBag.ItemList = new SelectList(List, "Id", "Name"); }