Example #1
0
        public string Entrar(Account account)
        {
            var authRules = new AuthRules();

            if (authRules.Logar(account)) return Success(account);
            else return Error(authRules.MessageError);
        }
Example #2
0
        public ActionResult Sair()
        {
            var authRules = new AuthRules();

            authRules.Sair();

            return RedirectToAction("Index", "Auth");
        }