Esempio n. 1
0
        public ActionResult Details(int id)
        {
            ViewBag.KaryawanList = new SelectList(PembeliRepo.GetAll());
            PembeliViewModel model = PembeliRepo.GetById(id);

            return(PartialView(model));
        }
Esempio n. 2
0
        public ActionResult Delete(int id)
        {
            ViewBag.KaryawanList = new SelectList(PembeliRepo.GetAll(), "Id", "Description");
            PembeliViewModel model = PembeliRepo.GetById(id);

            return(PartialView(model));
        }
Esempio n. 3
0
        public ActionResult Edit(int id)
        {
            PembeliViewModel model = PembeliRepo.GetById(id);

            return(PartialView(model));
        }