|
|
@ -1,5 +1,6 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
@ -44,7 +45,7 @@ namespace Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting
|
|
|
|
EntityId = entityId,
|
|
|
|
EntityId = entityId,
|
|
|
|
EntityType = entityType,
|
|
|
|
EntityType = entityType,
|
|
|
|
LoginUrl = loginUrl,
|
|
|
|
LoginUrl = loginUrl,
|
|
|
|
Comments = result.Items
|
|
|
|
Comments = result.Items.OrderByDescending(i=> i.CreationTime).ToList()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return View("~/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml", viewModel);
|
|
|
|
return View("~/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml", viewModel);
|
|
|
|