Ejemplo n.º 1
0
        public virtual List <IBinderValue> GetMyRecent(int count, int userId)
        {
            if (count == 0)
            {
                count = 5;
            }
            List <BlogPost> list = db.find <BlogPost>("Creator.Id=" + userId + " and SaveStatus=" + SaveStatus.Normal).list(count);

            return(SysBlogService.getResult(list));
        }
Ejemplo n.º 2
0
        //------------------------------------------ 聚合数据 --------------------------------------------------

        public virtual List <IBinderValue> GetTopNew(int count)
        {
            List <BlogPost> list = GetNewListAll(count);

            return(SysBlogService.getResult(list));
        }