Exemplo n.º 1
0
        public static Dictionary <int, int> GetPostDebateList(int tid)
        {
            if (tid <= 0)
            {
                return(null);
            }

            //return BBX.Data.Debates.GetPostDebateList(tid);
            return(PostDebateField.FindAllByTid(tid).ToList().ToDictionary(e => e.Pid, e => e.Opinion));
        }
Exemplo n.º 2
0
        public static Dictionary <int, int> GetPostDiggs(string pidlist)
        {
            if (!Utils.IsNumericList(pidlist))
            {
                return(new Dictionary <int, int>());
            }

            //return BBX.Data.Debates.GetPostDiggs(pidlist);
            var list = PostDebateField.FindAllByPids(pidlist.SplitAsInt());

            return(list.ToList().ToDictionary(e => e.Pid, e => e.Diggs));
        }