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