Пример #1
0
        /// <summary>
        /// Get the Artists collection from storage
        /// </summary>
        /// <returns></returns>
        public static async Task GetDataAsync()
        {
            if (ArtistCollection == null)
            {
                // Get the current set of artists and form the lookup tables
                ArtistCollection = await DbAccess.LoadAsync <Artist>();

                IdLookup = ArtistCollection.ToDictionary(art => art.Id);
            }
        }