예제 #1
0
 public MainController() {
     postService = new BlogPostService();
     pickedService = new PickedService();
     sysblogService = new SysBlogService();
     logService = new SiteLogService();
     categoryService = new BlogSysCategoryService();
 }
예제 #2
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));
        }
예제 #3
0
        public MainController()
        {
            postService = new BlogPostService();
            userService = new UserService();
            pickedService = new PickedService();
            sysblogService = new SysBlogService();
            categoryService = new BlogCategoryService();
            blogcommentService = new BlogCommentService();

            HideLayout( typeof( LayoutController ) );
        }
예제 #4
0
        //------------------------------------------ 聚合数据 --------------------------------------------------

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

            return(SysBlogService.getResult(list));
        }
예제 #5
0
 public LayoutController()
 {
     sysblogService = new SysBlogService();
     categoryService = new BlogSysCategoryService();
 }
예제 #6
0
 public LayoutController()
 {
     sysblogService = new SysBlogService();
 }