Exemple #1
0
        public pl_user_info getUserInfoByName(string userName, string passwordDecrypted)
        {
            DALLogin             dal = new DALLogin();
            string               passwordEncrypted = EncryptorHelper.Encryptor(passwordDecrypted);
            IList <pl_user_info> userInfo          = dal.getUserInfoByName(userName, passwordEncrypted);

            if (userInfo.Count > 0)
            {
                return(userInfo[0]);
            }
            else
            {
                return(null);
            }
        }