예제 #1
0
        private async Task SaveAsync()
        {
            Items = await _galleryService.GetAllActiveGalleries().ToListAsync();

            _showAdd = false;
        }
예제 #2
0
 protected override async Task OnInitializedAsync()
 {
     // return base.OnInitializedAsync();
     _galleryService = (GalleryService)ScopedServices.GetRequiredService(typeof(GalleryService));
     Items           = await _galleryService.GetAllActiveGalleries().ToListAsync();
 }