public string Entrar(Account account) { var authRules = new AuthRules(); if (authRules.Logar(account)) return Success(account); else return Error(authRules.MessageError); }
public ActionResult Sair() { var authRules = new AuthRules(); authRules.Sair(); return RedirectToAction("Index", "Auth"); }