/// <summary> /// Emaill verification /// </summary> /// <param name="id">User guid to be verify</param> /// <param name="type">User RegistrationType</param> /// <returns></returns> public ActionResult Verification(string id, int type = 2) { Guid guid = Guid.Empty; bool isVerified = false; if (!string.IsNullOrEmpty(id)) { UserDomainLogic userDomainLogic = new UserDomainLogic(); Guid.TryParse(id, out guid); isVerified = userDomainLogic.VerifyUser(guid); if (isVerified) { return(View("ThankUConfirmation", guid)); } } return(RedirectToAction("verificationexpired", "home")); }