Exemplo n.º 1
0
        /// <summary>
        /// Get the Albums collection from storage
        /// </summary>
        /// <returns></returns>
        public static async Task GetDataAsync()
        {
            if (AlbumCollection == null)
            {
                // Get the current set of albums and form the lookup tables
                AlbumCollection = await DbAccess.LoadAsync <Album>();

                IdLookup = AlbumCollection.ToDictionary(alb => alb.Id);
            }
        }