Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public static dto_Paper GetPaper(long paperId)
        {
            int id = IdNamingHelper.Decrypt(IdNamingHelper.IdTypeEnum.Paper, paperId);

            return(D_PaperRedis.GetPaper(id));
        }