Class RatingPublicController
Inheritance
RatingPublicController
Implements
Inherited Members
Namespace: Volo.CmsKit.Public.Ratings
Assembly: Volo.CmsKit.Public.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.RatingEnable" })]
[RequiresGlobalFeature(typeof(RatingsFeature))]
[RemoteService(true, Name = "CmsKitPublic")]
[Area("cms-kit")]
[Route("api/cms-kit-public/ratings")]
public class RatingPublicController : CmsKitPublicControllerBase, IAvoidDuplicateCrossCuttingConcerns, IRatingPublicAppService, IApplicationService, IRemoteService
Constructors
RatingPublicController(IRatingPublicAppService)
Declaration
public RatingPublicController(IRatingPublicAppService ratingPublicAppService)
Parameters
Type | Name | Description |
---|---|---|
IRatingPublicAppService | ratingPublicAppService |
Properties
RatingPublicAppService
Declaration
protected IRatingPublicAppService RatingPublicAppService { get; }
Property Value
Type | Description |
---|---|
IRatingPublicAppService |
Methods
CreateAsync(string, string, CreateUpdateRatingInput)
Declaration
[HttpPut]
[Route("{entityType}/{entityId}")]
public virtual Task<RatingDto> CreateAsync(string entityType, string entityId, CreateUpdateRatingInput input)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId | |
CreateUpdateRatingInput | input |
Returns
Type | Description |
---|---|
Task<RatingDto> |
DeleteAsync(string, string)
Declaration
[HttpDelete]
[Route("{entityType}/{entityId}")]
public virtual Task DeleteAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task |
GetGroupedStarCountsAsync(string, string)
Declaration
[HttpGet]
[Route("{entityType}/{entityId}")]
public virtual Task<List<RatingWithStarCountDto>> GetGroupedStarCountsAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task<List<RatingWithStarCountDto>> |