last works ...
This commit is contained in:
@@ -520,7 +520,9 @@ namespace xWebinarService.Providers
|
|||||||
// Since in Resourceable Entities we have to Search on Locales
|
// Since in Resourceable Entities we have to Search on Locales
|
||||||
// we Must Implement Senario Custom ...
|
// we Must Implement Senario Custom ...
|
||||||
var totalEntities = await WebinarRepository.GetAllAsync();
|
var totalEntities = await WebinarRepository.GetAllAsync();
|
||||||
var items = await totalEntities.SelectAsync(async e => await ToXWebinarDto(e));
|
var itemsTasks = totalEntities.Select(e => ToXWebinarDto(e));
|
||||||
|
var items = (await Task.WhenAll(itemsTasks)).AsEnumerable();
|
||||||
|
// var items = await totalEntities.SelectAsync(async e => await ToXWebinarDto(e));
|
||||||
var totalItemsCount = items.Count();
|
var totalItemsCount = items.Count();
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -562,8 +564,8 @@ namespace xWebinarService.Providers
|
|||||||
// Prepare Result ...
|
// Prepare Result ...
|
||||||
var result = new XQueryResult<XWebinarDto>
|
var result = new XQueryResult<XWebinarDto>
|
||||||
{
|
{
|
||||||
Items = items,
|
|
||||||
Page = query.Page,
|
Page = query.Page,
|
||||||
|
Items = items.ToList(),
|
||||||
PageSize = query.PageSize,
|
PageSize = query.PageSize,
|
||||||
TotalPages = totalPagesCount,
|
TotalPages = totalPagesCount,
|
||||||
TotalItems = totalItemsCount,
|
TotalItems = totalItemsCount,
|
||||||
|
|||||||
Reference in New Issue
Block a user