Ejemplo n.º 1
0
        public ActionResult VerifyAccount(string id)
        {
            bool status  = false;
            var  account = databaseHandler.AccountRepository.VerifyAccount(id);

            if (account != null)
            {
                status = true;
                NotificationCenter.AddVerificationSuccessfull("Welcome to KickTask " + account.Fullname);
            }

            else
            {
                ViewBag.Message = "invalid request";
            }

            ViewBag.Status = status;
            return(RedirectToAction("Main", "Main"));
        }