Ejemplo n.º 1
0
 public ActionResult Logar(string email, string senha)
 {
     if (Funcoes.AutenticarProfissional(email, senha) == false)
     {
         ViewBag.Error = "Usuário e/ou Senha Inválida";
         return(View());
     }
     return(RedirectToAction("Index", "Home"));
 }