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); }
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); }