Esempio n. 1
0
        public ActionResult AccountConfirm(ActivationUserModel model)
        {
            USERS Data = db.USERS.FirstOrDefault(x => x.USER_ID == model.uID);

            Data.VERIFIED = true;
            db.SaveChanges();
            return(RedirectToAction("Logowanie", "Home"));
        }
Esempio n. 2
0
        public ActionResult Weryfikacja(int uID)
        {
            ViewBag.UID = uID;
            var user = db.USERS.SingleOrDefault(x => x.USER_ID == uID);

            if (user != null)
            {
                ActivationUserModel model = new ActivationUserModel();
                model.uID = uID;
                return(View(model));
            }
            else
            {
                return(HttpNotFound());
            }
        }