private static int[] GetPaperQuesIds(int paperId) { dto_Paper p = D_PaperRedis.GetPaper(paperId); if (p == null) { return(null); } if (p.QIds == "") { return(null); } string[] s = p.QIds.Split(','); int[] result = Array.ConvertAll(s, new Converter <string, int>(StringToInt)); return(result); }
public static dto_Paper GetPaper(long paperId) { int id = IdNamingHelper.Decrypt(IdNamingHelper.IdTypeEnum.Paper, paperId); return(D_PaperRedis.GetPaper(id)); }