CommentService
Namespace: SlottyMedia.Backend.Services
public class CommentService : SlottyMedia.Backend.Services.Interfaces.ICommentService
Inheritance Object → CommentService
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
InsertComment(Guid, Guid, String)
public Task InsertComment(Guid creatorUserId, Guid postId, string content)
Parameters
creatorUserId Guid
postId Guid
content String
Returns
UpdateComment(CommentDao)
public Task UpdateComment(CommentDao comment)
Parameters
comment CommentDao
Returns
DeleteComment(CommentDao)
public Task DeleteComment(CommentDao comment)
Parameters
comment CommentDao
Returns
CountCommentsInPost(Guid)
public Task<int> CountCommentsInPost(Guid postId)
Parameters
postId Guid
Returns
GetCommentsInPost(Guid, PageRequest)
public Task<IPage<CommentDto>> GetCommentsInPost(Guid postId, PageRequest pageRequest)
Parameters
postId Guid
pageRequest PageRequest