public ActionResult PasswordRecovery(PasswordRecoveryModel model)
        {
            var result = _readOnlyRepository.First<Account>(a => a.EMail == model.EMailAddress);

            if (result != null)
            {
                var fechaActual = DateTime.Now.Date;

                var pass = result.Password;
                var data = ""+fechaActual.Day + fechaActual.Month + fechaActual.Year;
                var token =pass+";"+ EncriptacionMD5.Encriptar(data);

                //var url = "http://minidropbox-1.apphb.com/PasswordReset/PasswordReset";
                var url = "http://minidropboxclase.apphb.com/PasswordReset/PasswordReset";

                var emailBody = new StringBuilder("<b>Go to the following link to change your password: </b>");
                emailBody.Append("<br/>");
                emailBody.Append("<br/>");
                emailBody.Append("<b>" + url + "?token=" +token + "<b>");
                emailBody.Append("<br/>");
                emailBody.Append("<br/>");
                emailBody.Append("<b>This link is only valid through " + fechaActual.Day + "/" + fechaActual.Month + "/" + fechaActual.Year + "</b>");

                AddActivity("Se ha hecho una peticion de recuperar contrasena",result);
                if (MailSender.SendEmail(model.EMailAddress,"Password Recovery" ,emailBody.ToString()))
                    return Cancel();

                Error("E-Mail failed to be sent, please try again!!!");
                return View(model);

            }

            Error("E-Mail address is not registered in this site!!!");
            return View(model);
        }
        public ActionResult PasswordRecovery(PasswordRecoveryModel model)
        {
            var result = _readOnlyRepository.Query<Account>(a => a.EMail == model.EMailAddress);

            if (result.Any())
            {
                var nameMail = result.FirstOrDefault().Name + result.FirstOrDefault().EMail+DateTime.Now.Date;
                var token = EncriptacionMD5.Encriptar(nameMail);
                var url = "";
                var emailBody = "Go to the following link to change your password: "******"token"+token;
                //Send the email
                return Cancel();
            }

            Error("E-Mail address is not registered in this site!!!");
            return View(model);
        }