public ActionResult DangKy(SignupModel model) { var ndDAO = new NguoiDungDAO(); if (ModelState.IsValid) { if (ndDAO.checkData(model)) { ndDAO.InsertND(model); return(RedirectToAction("Login")); } else { ModelState.AddModelError("", "Đăng ký không thành công, tài khoản hoặc số điện thoại đã tồn tại"); } } return(View(model)); }