public ActionResult Delete(int id, FormCollection collection) { try { patientPortal.delete(id); return(RedirectToAction("Index")); } catch { return(View()); } }