public ActionResult Update2(CheckUser user) { if (user.ID_User is null) { user.Create_At = DateTime.Now; db.AddAcc(user); } else { db.UpdateUser(user); } int x = 1; return(RedirectToAction("Index")); }