public ActionResult RecuperarPass(string email) { var v = ul.DatosUsuario(email); if (v != null) { PasswordRecovery pr = new PasswordRecovery { RecoveryKey = Guid.NewGuid(), Email = email, IsRecovered = false }; prl.InsertPR(pr); SendRecoveryLinkEmail(email, pr.RecoveryKey.ToString()); message = "Registration successfully done. Account activation link " + " has been sent to your email id:" + email; Status = true; } else { message = "Invalid credential provided"; } ViewBag.Message = message; ViewBag.Status = Status; return(View()); }