コード例 #1
0
        public static Passport GetPassportByID(long userID)
        {
            Passport  item = new Passport();
            DataTable dt   = PassportDAL.BaseDAL.GetPassportByID(userID);

            if (dt.Rows.Count > 0)
            {
                item.FillData(dt.Rows[0]);
            }

            return(item);
        }
コード例 #2
0
        public static Passport GetPassportByWeiXinID(string weiXinID)
        {
            Passport  item = new Passport();
            DataTable dt   = PassportDAL.BaseDAL.GetPassportByWeiXinID(weiXinID);

            if (dt.Rows.Count > 0)
            {
                item.FillData(dt.Rows[0]);
            }

            return(item);
        }