Exemplo n.º 1
0
        public ActionResult Placement(long id)
        {
            MonitoringViewModel model = new MonitoringViewModel();

            model = MonitoringRepo.ById(id);

            ViewBag.placement_date = model.placement_date?.ToString("yyyy'-'MM'-'dd");
            return(PartialView("_Placement", MonitoringRepo.ById(id)));
        }
Exemplo n.º 2
0
        public ActionResult Edit(long id)
        {
            MonitoringViewModel model = new MonitoringViewModel();            //.

            model = MonitoringRepo.ById(id);                                  //.

            ViewBag.idle_date   = model.idle_date.ToString("yyyy'-'MM'-'dd"); //.(BIAR PAS NGEDIT ADA TANGGAL LAMANYA)
            ViewBag.BiodataList = new SelectList(MonitoringRepo.ByNameBiodataforEdit(model.biodata_id), "id", "name");
            return(PartialView("_Edit", model));
        }
Exemplo n.º 3
0
 public ActionResult Delete(long id)
 {
     return(PartialView("_Delete", MonitoringRepo.ById(id)));
 }