public ActionResult Delete(long Daftar) { string result = RepoApplicant.HapusData(Daftar); if (result == "ok") { return(RedirectToAction("Index", "Daftar")); } else { return(Json(new { message = "Gagal", data = result }, JsonRequestBehavior.AllowGet)); } }
public ActionResult Create(VMApplicant Applicant) { Boolean result = RepoApplicant.savedata(Applicant); if (result == true) { return(Json(new { message = "Berhasil" }, JsonRequestBehavior.AllowGet)); //return RedirectToAction("Index", "Nasabah"); } else { return(Json(new { message = "Gagal", data = result }, JsonRequestBehavior.AllowGet)); //return RedirectToAction("Index", "Applicant"); } }
public ActionResult Edit(long paramID) { return(View(RepoApplicant.GetDetailsById(paramID))); }