Пример #1
0
        public ActionResult <dynamic> Activate([FromQuery] string hash)
        {
            string message = null;

            if (usersManager.Activate(hash, ref message))
            {
                return(new
                {
                    success = true,
                    message = "User account is successfully active."
                });
            }
            return(Return500Error(message));
        }
Пример #2
0
        public ActionResult Activate(int id)
        {
            var result = _usermanager.Activate(id);

            return(RedirectToAction("Index"));
        }