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

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

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

            return(PartialView(model));
        }