public ActionResult Create(SignupModel model) { var ndDAO = new NguoiDungDAO(); if (ModelState.IsValid) { if (ndDAO.checkData(model)) { ndDAO.InsertAdmin(model); return(RedirectToAction("AllProfile")); } 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)); }