public MainController() { postService = new BlogPostService(); pickedService = new PickedService(); sysblogService = new SysBlogService(); logService = new SiteLogService(); categoryService = new BlogSysCategoryService(); }
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)); }
public MainController() { postService = new BlogPostService(); userService = new UserService(); pickedService = new PickedService(); sysblogService = new SysBlogService(); categoryService = new BlogCategoryService(); blogcommentService = new BlogCommentService(); HideLayout( typeof( LayoutController ) ); }
//------------------------------------------ 聚合数据 -------------------------------------------------- public virtual List <IBinderValue> GetTopNew(int count) { List <BlogPost> list = GetNewListAll(count); return(SysBlogService.getResult(list)); }
public LayoutController() { sysblogService = new SysBlogService(); categoryService = new BlogSysCategoryService(); }
public LayoutController() { sysblogService = new SysBlogService(); }