Class MarkedItemPublicController
Inheritance
MarkedItemPublicController
Implements
Inherited Members
Namespace: Volo.CmsKit.Public.MarkedItems
Assembly: Volo.CmsKit.Public.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.MarkedItemEnable" })]
[RequiresGlobalFeature(typeof(MarkedItemsFeature))]
[RemoteService(true, Name = "CmsKitPublic")]
[Area("cms-kit")]
[Route("api/cms-kit-public/marked-items")]
public class MarkedItemPublicController : CmsKitPublicControllerBase, IAvoidDuplicateCrossCuttingConcerns, IMarkedItemPublicAppService, IApplicationService, IRemoteService
Constructors
MarkedItemPublicController(IMarkedItemPublicAppService)
Declaration
public MarkedItemPublicController(IMarkedItemPublicAppService markedItemPublicAppService)
Parameters
Type | Name | Description |
---|---|---|
IMarkedItemPublicAppService | markedItemPublicAppService |
Properties
MarkedItemPublicAppService
Declaration
protected IMarkedItemPublicAppService MarkedItemPublicAppService { get; }
Property Value
Type | Description |
---|---|
IMarkedItemPublicAppService |
Methods
GetForUserAsync(string, string)
Declaration
[HttpGet]
[Route("{entityType}/{entityId}")]
public virtual Task<MarkedItemWithToggleDto> GetForUserAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task<MarkedItemWithToggleDto> |
ToggleAsync(string, string)
Declaration
[HttpPut]
[Route("{entityType}/{entityId}")]
public Task<bool> ToggleAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task<bool> |