Ejemplo n.º 1
0
        public async Task <IActionResult> Approve(int commentId)
        {
            var result = await _commentService.ApproveAsync(commentId, LoggedInUser.UserName);

            var commentResult = JsonSerializer.Serialize(result, new JsonSerializerOptions {
                ReferenceHandler = ReferenceHandler.Preserve
            });

            return(Json(commentResult));
        }