public async Task AddSiteContentsAsync(VideoPortalHelper videoPortalHelper)
        {
            replaceTenantId(sampleData);

            //add items to Properties list
            CSOMUtil.AddListItems(clientContext, "Properties", sampleData);

            //add items to Rooms list
            CSOMUtil.AddListItems(clientContext, "Rooms", sampleData);

            //add items to Inspections list
            CSOMUtil.AddListItems(clientContext, "Inspections", sampleData);

            //add items to Inspection Comments list
            CSOMUtil.AddListItems(clientContext, "Inspection Comments", sampleData);

            //add items to Incidents list
            CSOMUtil.AddListItems(clientContext, "Incidents", sampleData);

            //add items to Room Inspection Photos list
            CSOMUtil.AddDocumentLibItems(clientContext, "Room Inspection Photos", sampleData);

            //add items to Repair Photos list
            CSOMUtil.AddDocumentLibItems(clientContext, "Repair Photos", sampleData);

            //add items to Property Photos list
            CSOMUtil.AddDocumentLibItems(clientContext, "Property Photos", sampleData);

            //upload demo videos to Video Portal
            await ProvisionDemoVideosAsync(videoPortalHelper, "Videos", sampleData);
        }
        public void AddSiteContents()
        {
            XmlDocument sampleData = new XmlDocument();

            var sampleDataUrl = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + "/Content/SampleData.xml";

            sampleData.Load(sampleDataUrl);
            replaceTenantId(sampleData);

            //add items to Properties list
            CSOMUtil.AddListItems(_clientContext, "Properties", sampleData);

            //add items to Rooms list
            CSOMUtil.AddListItems(_clientContext, "Rooms", sampleData);

            //add items to Inspections list
            CSOMUtil.AddListItems(_clientContext, "Inspections", sampleData);

            //add items to Inspection Comments list
            CSOMUtil.AddListItems(_clientContext, "Inspection Comments", sampleData);

            //add items to Incidents list
            CSOMUtil.AddListItems(_clientContext, "Incidents", sampleData);

            //add items to Room Inspection Photos list
            CSOMUtil.AddDocumentLibItems(_clientContext, "Room Inspection Photos", sampleData);

            //add items to Repair Photos list
            CSOMUtil.AddDocumentLibItems(_clientContext, "Repair Photos", sampleData);

            //add items to Property Photos list
            CSOMUtil.AddDocumentLibItems(_clientContext, "Property Photos", sampleData);
        }