Example #1
0
 public async Task Add(LibraryItem libraryItem)
 {
     await CosmosDBRepository <LibraryItem> .CreateItemAsync(libraryItem);
 }
Example #2
0
        async public Task <IList <LibraryItem> > GetAllItems()
        {
            IEnumerable <LibraryItem> libraryItems = await CosmosDBRepository <LibraryItem> .GetAllItemsAsync();

            return(libraryItems.ToList());
        }
Example #3
0
 public CosmosLibraryStore()
 {
     CosmosDBRepository <LibraryItem> .Initialize();
 }