public OperationStatus ReportOffensiveContent(ReportEntityDetails offensiveContentDetails)
        {
            OperationStatus status = null;

            this.CheckNotNull(() => new { reportEntityDetails = offensiveContentDetails });

            try
            {
                var offensiveContent = new OffensiveContent();
                Mapper.Map(offensiveContentDetails, offensiveContent);

                offensiveContent.ReportedDatetime = DateTime.UtcNow;

                _offensiveContentRepository.Add(offensiveContent);
                _offensiveContentRepository.SaveChanges();
            }
            catch (Exception exception)
            {
                status = OperationStatus.CreateFailureStatus(exception);
            }

            // Status will be null if all sub communities and contents have been deleted.
            // If one them is not deleted then the status will have the exception details.
            status = status ?? OperationStatus.CreateSuccessStatus();

            return(status);
        }
        public OperationStatus ReportOffensiveContent(ReportEntityDetails offensiveContentDetails)
        {
            OperationStatus status = null;

            this.CheckNotNull(() => new { reportEntityDetails = offensiveContentDetails });

            try
            {
                var offensiveContent = new OffensiveContent();
                Mapper.Map(offensiveContentDetails, offensiveContent);

                offensiveContent.ReportedDatetime = DateTime.UtcNow;

                _offensiveContentRepository.Add(offensiveContent);
                _offensiveContentRepository.SaveChanges();
            }
            catch (Exception exception)
            {
                status = OperationStatus.CreateFailureStatus(exception);
            }

            // Status will be null if all sub communities and contents have been deleted. 
            // If one them is not deleted then the status will have the exception details.
            status = status ?? OperationStatus.CreateSuccessStatus();

            return status;
        }