Mono Support Get user photos 

9576 put(a) pogledan, 2 odgovor(a), 4.1.2012. 18:37:09 - Kreirao(la) Maxim
4.1.2012. 18:37:09
319 Reputacija 30 Ukupno objava

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

1
5.1.2012. 20:12:56
15993 Reputacija 2214 Ukupno objava

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
Ovo je MonoX demo site. Posjetite Mono Software za više detalja.