Ejemplo n.º 1
0
        //Autenticar
        public UsuarioDTO AutenticaUser(string objUser, string objSenha)
        {
            UsuarioDTO user = objBLL.Autentica(objUser, objSenha);

            if (user != null)
            {
                return(user);
            }
            else
            {
                throw new Exception("Usuario inesistente!");
            }
        }