Example #1
0
        public async Task <IActionResult> GetAllCommentList()
        {
            var query  = new GetAllCommentListQuery();
            var result = await _mediator.Send(query);

            return(result == null ? null : new ObjectResult(result));
        }
        public async Task <IEnumerable <CommentListDTO> > Handle(GetAllCommentListQuery request, CancellationToken cancellationToken)
        {
            string functionName = "GetAllCommentList:Get:";

            Log.ForContext("Message", functionName)
            .ForContext("Error", "")
            .Information(functionName);
            return(await _read.GetAllCommentList());
        }