public ActionResult Edit(int id) { ViewBag.SupplierList = new SelectList(SupplierRepo.GetAll(), "Id", "Nama"); BarangViewModel model = BarangRepo.GetById(id); return(PartialView(model)); }
// GET: Pembelian public ActionResult Index() { ViewBag.SupplierList = new SelectList(SupplierRepo.GetAll(), "Id", "Nama"); return(View()); }
public IQueryable <Supplier> GetAll() { var repo = new SupplierRepo(_context); return(repo.GetAll()); }
public ActionResult Create() { ViewBag.SupplierList = new SelectList(SupplierRepo.GetAll(), "Id", "Nama"); return(PartialView()); }
public ActionResult List() { return(PartialView(SupplierRepo.GetAll())); }