Exemplo n.º 1
0
 public PostAdminController() {
     photoService = new SysPhotoService();
     postService = new PhotoPostService();
     pickedService = new PickedService();
     categoryService = new PhotoSysCategoryService();
     logService = new SiteLogService();
 }
Exemplo n.º 2
0
        public MainController()
        {
            photoService = new SysPhotoService();
            PickedService = new PickedService();
            categoryService = new PhotoSysCategoryService();
            rankService = new PhotoRankService();

            HideLayout( typeof( LayoutController ) );
        }
Exemplo n.º 3
0
        public virtual List <IBinderValue> GetMyNew(int count, int userId)
        {
            if (count < 0)
            {
                count = 10;
            }
            List <PhotoPost> posts = db.find <PhotoPost>("Creator.Id=" + userId + " and AppId>0 and SaveStatus=" + SaveStatus.Normal).list(count);

            return(SysPhotoService.populatePhoto(posts));
        }
Exemplo n.º 4
0
        public HomeController()
        {
            userService = new UserService();
            categoryService = new PhotoAlbumService();
            postService = new PhotoPostService();
            pickedService = new PickedService();
            likeService = new PhotoLikeService();
            photoService = new PhotoService();
            sysPostService = new SysPhotoService();

            HideLayout( typeof( wojilu.Web.Controller.Photo.LayoutController ) );
        }
Exemplo n.º 5
0
 public virtual List <IBinderValue> GetMyNew(int count, int userId)
 {
     return(SysPhotoService.populatePhoto(GetNew(userId, count)));
 }
Exemplo n.º 6
0
 public LayoutController()
 {
     photoService = new SysPhotoService();
     categoryService = new PhotoSysCategoryService();
 }