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());
 }
Esempio n. 3
0
        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());
 }
Esempio n. 5
0
 public ActionResult List()
 {
     return(PartialView(SupplierRepo.GetAll()));
 }