Example #1
0
        public static String ToAdminAlbum(User u)
        {
            PhotoApp app = PhotoApp.find("OwnerId=" + u.Id).first();

            if (app == null)
            {
                return("");
            }

            return(Link.To(u, new Photo.Admin.AlbumController().List, app.Id));
        }
Example #2
0
 public PhotoApp GetByUser(int userId)
 {
     return(PhotoApp.find("OwnerId=" + userId).first());
 }
Example #3
0
        private PhotoApp getPhotoAppByUser(User creator)
        {
            PhotoApp app = PhotoApp.find("OwnerId=" + creator.Id).first();

            return(app);
        }
Example #4
0
 public virtual PhotoApp GetByUser(long userId)
 {
     return(PhotoApp.find("OwnerId=" + userId).first());
 }