Class RatingPublicAppService
Inheritance
RatingPublicAppService
Assembly: Volo.CmsKit.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.RatingEnable" })]
[RequiresGlobalFeature(typeof(RatingsFeature))]
public class RatingPublicAppService : CmsKitPublicAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IRatingPublicAppService, IApplicationService, IRemoteService
Constructors
RatingPublicAppService(IRatingRepository, ICmsUserLookupService, RatingManager)
Declaration
public RatingPublicAppService(IRatingRepository ratingRepository, ICmsUserLookupService cmsUserLookupService, RatingManager ratingManager)
Parameters
Properties
CmsUserLookupService
Declaration
public ICmsUserLookupService CmsUserLookupService { get; }
Property Value
RatingManager
Declaration
protected RatingManager RatingManager { get; }
Property Value
RatingRepository
Declaration
protected IRatingRepository RatingRepository { get; }
Property Value
Methods
Declaration
[Authorize]
public virtual Task<RatingDto> CreateAsync(string entityType, string entityId, CreateUpdateRatingInput input)
Parameters
Returns
DeleteAsync(string, string)
Declaration
[Authorize]
public virtual Task DeleteAsync(string entityType, string entityId)
Parameters
Returns
GetGroupedStarCountsAsync(string, string)
Declaration
public virtual Task<List<RatingWithStarCountDto>> GetGroupedStarCountsAsync(string entityType, string entityId)
Parameters
Returns
Implements
Extension Methods