private async Task SaveAsync() { Items = await _galleryService.GetAllActiveGalleries().ToListAsync(); _showAdd = false; }
protected override async Task OnInitializedAsync() { // return base.OnInitializedAsync(); _galleryService = (GalleryService)ScopedServices.GetRequiredService(typeof(GalleryService)); Items = await _galleryService.GetAllActiveGalleries().ToListAsync(); }