Beispiel #1
0
        public async Task <ActionResult <CommentsGetAllDto> > GetAllComments([FromQuery] int?pageNumber, int?userId, int?postId)
        {
            var comments = await _repository.GetAllCommentsAsync(pageNumber, userId, postId);

            return(Ok(_mapper.Map <CommentsGetAllDto>(comments)));
        }