public ActionResult New(Register r) { if (ModelState.IsValid) { RegisterDA.InsertRegister(r); return(RedirectToAction("Index")); } return(View("New")); }