public IActionResult SupplierList() { var supplierModel = new List <SupplierModel>(); var selectLists = dropdownObj.GetSuppliers(); foreach (var item in selectLists) { var model = new SupplierModel() { Name = item.Text }; supplierModel.Add(model); } return(View(supplierModel)); }
public IActionResult InsertSupplier() { ViewBag.SupplierList = dropdownObj.GetSuppliers(); ViewBag.ChannelList = dropdownObj.GetChannels(); return(View(new ChannelModel())); }