Beispiel #1
0
 public ActionResult Index(UsuarioConsumidor user)
 {
     if (ModelState.IsValid)
     {
         string senhaHash = Crypter.Blowfish.Crypt(user.Senha);
         var    usuario   = new QueryUsuarioConsumidor();
         if (usuario.VerificaUserName(user))
         {
             user.Senha = senhaHash;
             usuario.Inserir(user);
         }
         return(View("UsuarioExistente"));
     }
     return(View(user));
 }