public IActionResult Upload() { vmod.ListTipe = new SelectList(_combobox.TipeKegiatanOrmawa(), "ID", "Value"); vmod.ListJenis = new SelectList(_combobox.JenisKegiatanOrmawa(), "ID", "Value"); vmod.ListPj = new SelectList(_combobox.AnggotaOrmawa(), "ID", "Value"); return(View(vmod)); }
// GET: Anggota/Create public IActionResult Add() { //if (id == 0) // return View(new Anggota()); //else // return View(_context.AnggotaOrmawa.Find(id)); PengajuanProposalViewModel vm = new PengajuanProposalViewModel(); vm.ListAnggotaOrmawa = new SelectList(_combobox.AnggotaOrmawa(), "ID", "Value"); vm.ListTipeKegiatan = new SelectList(_combobox.TipeKegiatanOrmawa(), "ID", "Value"); vm.ListJenisKegiatan = new SelectList(_combobox.JenisKegiatanOrmawa(), "ID", "Value"); //vm.ListPenanggungJawab = new SelectList(_combobox.(), "ID", "Value"); return(View(vm)); }