mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting;
|
|
using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Rating;
|
|
using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.ReactionSelection;
|
|
|
|
namespace Volo.CmsKit.Public.Web.Controllers;
|
|
|
|
public class CmsKitPublicWidgetsController : AbpController
|
|
{
|
|
public Task<IActionResult> ReactionSelection(string entityType, string entityId)
|
|
{
|
|
return Task.FromResult((IActionResult)ViewComponent(typeof(ReactionSelectionViewComponent), new { entityType, entityId }));
|
|
}
|
|
|
|
public Task<IActionResult> Commenting(string entityType, string entityId)
|
|
{
|
|
return Task.FromResult((IActionResult)ViewComponent(typeof(CommentingViewComponent), new { entityType, entityId }));
|
|
}
|
|
|
|
public Task<IActionResult> Rating(string entityType, string entityId)
|
|
{
|
|
return Task.FromResult((IActionResult)ViewComponent(typeof(RatingViewComponent), new { entityType, entityId }));
|
|
}
|
|
}
|
|
|