Ejemplo n.º 1
0
 public LibraryViewModel(IMetadataRepository repository, LibraryPageItemViewModel.Factory itemFactory) : base("library")
 {
     this.repository  = repository;
     this.itemFactory = itemFactory;
     DisplayName      = "Library";
     //TODO: find a way to fix this getawaiter
     pagination    = repository.GetAllEntriesAsync().GetAwaiter().GetResult();
     PageSelection = Enumerable.Range(1, PageCount).ToList();
 }