protected string ValidarAcesso(string token) { this.UserLogado = AutentificacaoServico.RecuperarPeloTokien(token); if (UserLogado != null) { return(AutentificacaoServico.GerarTokien(UserLogado.Id)); } return(null); }
protected UserResponse ValidarAcesso(string user, string senha) { UserResponse resp = AutentificacaoServico.Login(user, senha); var nullablal = this.Commit(new object(), String.Empty, AutentificacaoServico); if (nullablal.Salve) { return(resp); } return(null); }
protected bool EfetuarLogoff(string tokien) { return(AutentificacaoServico.LogOff(tokien)); }