Пример #1
0
        public async Task <IActionResult> PostReport([FromBody] Report report)
        {
            if (report.PostId == Guid.Empty)
            {
                return(BadRequest("Invalid Post"));
            }
            if (report.ReporterId == Guid.Empty)
            {
                return(BadRequest("Invalid User"));
            }

            await _moderationService.PostReport(report);

            return(Ok());
        }