protected async override Task OnInitializedAsync() { Album = await Service.Get(int.Parse(Id)); Artists = await ArtistServices.GetAll(); }
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(); }