public static UserPermissionActivityProduct GetActivityProduct(string pkID) { var dt = DALUserPermission.GetActivityProduct(pkID); if (dt == null || dt.Rows.Count <= 0) { return(null); } return(new UserPermissionActivityProduct(dt.Rows[0])); }