@page "/imagelist" @using BlazorServerSample.Data @using BlazorServerSample.Services @inject IImageRespository ImgeRepo //inject the services

Weather forecast

@if (imageList == null) {

Loading...

} else {
@foreach (var img in imageList) { }
}
@code { private List? imageList; protected void GetImages() { ////get the images list from the services, you can also use HttpClient to call the API method and get the images imageList = ImgeRepo.GetImages(); } }