Updating an abuse report

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The following code example shows how you can modify details of an existing abuse report.

 

[C#]

 

using CMS.SiteProvider;

 

...

        

        // First get the abuse report info by its ID

        AbuseReportInfo ari = AbuseReportInfoProvider.GetAbuseReportInfo(1);

 

        if (ari != null)

        {

            // Set abuse report status to solved

            ari.ReportStatus = AbuseReportStatusEnum.Solved;

            // Edit comment

            ari.ReportComment += " - SOLVED";

            // Save the abuse report info to the database

            AbuseReportInfoProvider.SetAbuseReportInfo(ari);

        }

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_updating_an_abuse_report.htm