Class RatingPublicAppService
Inheritance
System.Object
RatingPublicAppService
Implements
IApplicationService
Assembly: Volo.CmsKit.Public.Application.dll
Syntax
public class RatingPublicAppService : ApplicationService, IRatingPublicAppService, IApplicationService
Constructors
RatingPublicAppService(IRatingRepository, ICmsUserLookupService)
Declaration
public RatingPublicAppService(IRatingRepository ratingRepository, ICmsUserLookupService cmsUserLookupService)
Parameters
Type |
Name |
Description |
IRatingRepository |
ratingRepository |
|
ICmsUserLookupService |
cmsUserLookupService |
|
Properties
CmsUserLookupService
Declaration
public ICmsUserLookupService CmsUserLookupService { get; }
Property Value
Type |
Description |
ICmsUserLookupService |
|
RatingRepository
Declaration
protected IRatingRepository RatingRepository { get; }
Property Value
Type |
Description |
IRatingRepository |
|
Methods
Declaration
public virtual Task<RatingDto> CreateAsync(string entityType, string entityId, CreateUpdateRatingInput input)
Parameters
Returns
DeleteAsync(String, String)
Declaration
public virtual Task DeleteAsync(string entityType, string entityId)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
System.String |
entityId |
|
Returns
GetCurrentUserRatingAsync(String, String)
Declaration
public virtual Task<RatingDto> GetCurrentUserRatingAsync(string entityType, string entityId)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
System.String |
entityId |
|
Returns
GetGroupedStarCountsAsync(String, String)
Declaration
public virtual Task<List<RatingWithStarCountDto>> GetGroupedStarCountsAsync(string entityType, string entityId)
Parameters
Type |
Name |
Description |
System.String |
entityType |
|
System.String |
entityId |
|
Returns
Implements
IApplicationService
Extension Methods