protected async override Task OnInitializedAsync()
 {
     Album = await Service.Get(int.Parse(Id));
     Artists = await ArtistServices.GetAll();
 }
Exemple #2
0
        protected override async Task OnInitializedAsync()
        {
            var data = await ArtistServices.GetAll();

            Artists = data?.Select(x => new KeyValuePair <int, string>(x.Id, $"{x.Name} {x.LastName}")).ToList();
        }