Exemple #1
0
        public static Boolean ValidarHabilitado(string user, string clave)
        {
            try
            {
                UsuarioLogic ul = new UsuarioLogic();
                (_, bool habilitado) = ul.GetClaveYHabilitado(user);

                if (habilitado)
                {
                    return(true);
                }

                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }