Exemple #1
0
        public static List <object> AuthResult(Authenticates.CriteriaInfo criteriaInfo)
        {
            Authenticates authenticate = Authenticates.GetData(criteriaInfo);
            List <object> res          = new List <object>((IEnumerable <object>)authenticate);

            return(res);
        }
Exemple #2
0
        public static bool AuthenticateUser(Authenticates.CriteriaInfo criteriaInfo)
        {
            Authenticates authenticate = Authenticates.GetData(criteriaInfo);

            if (authenticate.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
        public static int AuthenticateUser(Authenticates.CriteriaInfo criteriaInfo)
        {
            Authenticates authenticate = Authenticates.GetData(criteriaInfo);
            List <object> res          = new List <object>((IEnumerable <object>)authenticate);

            if (authenticate.Count > 0)
            {
                return(authenticate.Count);
            }
            else
            {
                return(0);
            }
        }
Exemple #4
0
        public static Authenticates Result(Authenticates.CriteriaInfo criteriaInfo)
        {
            Authenticates authenticate = Authenticates.GetData(criteriaInfo);

            return(authenticate);
        }