Skip to content

CommentService

Namespace: SlottyMedia.Backend.Services

public class CommentService : SlottyMedia.Backend.Services.Interfaces.ICommentService

Inheritance ObjectCommentService
Implements ICommentService

Constructors

CommentService(ICommentRepository)

public CommentService(ICommentRepository commentRepository)

Parameters

commentRepository ICommentRepository

Methods

GetCommentById(Guid)

public Task<CommentDto> GetCommentById(Guid commentId)

Parameters

commentId Guid

Returns

Task<CommentDto>

InsertComment(Guid, Guid, String)

public Task InsertComment(Guid creatorUserId, Guid postId, string content)

Parameters

creatorUserId Guid

postId Guid

content String

Returns

Task

UpdateComment(CommentDao)

public Task UpdateComment(CommentDao comment)

Parameters

comment CommentDao

Returns

Task

DeleteComment(CommentDao)

public Task DeleteComment(CommentDao comment)

Parameters

comment CommentDao

Returns

Task

CountCommentsInPost(Guid)

public Task<int> CountCommentsInPost(Guid postId)

Parameters

postId Guid

Returns

Task<Int32>

GetCommentsInPost(Guid, PageRequest)

public Task<IPage<CommentDto>> GetCommentsInPost(Guid postId, PageRequest pageRequest)

Parameters

postId Guid

pageRequest PageRequest

Returns

Task<IPage<CommentDto>>