diff --git a/Streetcode/Streetcode.BLL/MediatR/Streetcode/Streetcode/GetPageMainPage/GetPageOfStreetcodesMainPageHandler.cs b/Streetcode/Streetcode.BLL/MediatR/Streetcode/Streetcode/GetPageMainPage/GetPageOfStreetcodesMainPageHandler.cs index c2d299e2f..9afc4b0b7 100644 --- a/Streetcode/Streetcode.BLL/MediatR/Streetcode/Streetcode/GetPageMainPage/GetPageOfStreetcodesMainPageHandler.cs +++ b/Streetcode/Streetcode.BLL/MediatR/Streetcode/Streetcode/GetPageMainPage/GetPageOfStreetcodesMainPageHandler.cs @@ -38,7 +38,7 @@ public async Task>> Handle(GetPageOfSt predicate: sc => sc.Status == DAL.Enums.StreetcodeStatus.Published, include: src => src.Include(item => item.Text).Include(item => item.Images).ThenInclude(x => x.ImageDetails), descendingSortKeySelector: sc => sc.CreatedAt) - .Entities; + .Entities.ToList(); if (streetcodes is not null && streetcodes.Any()) {