public IActionResult ReportComment(ReportDTO reportDto) { Comment comment = _ideationManager.GetComment(reportDto.CommentId); User user = _usermanager.GetUserAsync(User).Result; Report FoundReport = _ideationManager.FindReport(user, comment); if (FoundReport != null) { return(Ok()); } Report report = new Report() { Reason = reportDto.Reason, ReportedComment = comment, User = user }; _ideationManager.ReportComment(report); _unitOfWorkManager.Save(); return(Ok(report.ReportId)); }