public ActionResult Delete(int id) { try { // TODO: Add delete logic here AccountBAL balObject = new AccountBAL(); balObject.Delete(id); return(RedirectToAction("Index")); } catch { return(View()); } }