public ActionResult EditForm(int id) { Application application = new Application(); ApplicantDatabase ad = new ApplicantDatabase(); application = ad.GetById(id); return View(application); }
public ActionResult ViewDetails(int id) { var repo = new ApplicantDatabase(); var applicant = repo.GetById(id); return View(applicant); }
public JsonResult ViewDetailsJH(string id) { var repo = new ApplicantDatabase(); var applicant = repo.GetById(int.Parse(id)); return Json(applicant, JsonRequestBehavior.AllowGet); }