public ActionResult Delete(int id) { if (id != 0) { rgm.DeleteUser(id); } return(RedirectToAction("RegisterDetails", "Register")); }