Mono Support Get user photos 

Viewed 9038 time(s), 2 post(s), 1/4/2012 6:37:09 PM - by Maxim
1/4/2012 6:37:09 PM
319 Reputation 30 Total posts

Hi! How can I get a concrete user galleries(by userId)? It's like "My Albums" control but show other users albums.

1
1/5/2012 8:12:56 PM
15993 Reputation 2214 Total posts

Hi,

you can access the gallery list by using the following code:

AlbumRepository repository = AlbumRepository.GetInstance();
EntityCollection<SnAlbumEntity> albums = null;
 
int recordCount = 0;
 
    Guid? userId = this.UserId;
    albums = repository.GetAlbums(userId, this.GroupId, this.PrivacyLevelIds, true, pager.CurrentPageIndex + 1, pager.PageSize, out recordCount);
  
 
 
    PagerUtility.BindPager(pager, DataBind, lvItems, albums, recordCount);

Regards

2
This is a demo site for MonoX. Please visit Mono Software for more info.