public void RemovePageCache(Guid pageId)

        {
            var m = _dbSet.SingleOrDefault(x => x.Id == pageId);

            if (m != null)
            {
                var fileSvc = new FileServices.FileBuilder(m.BaseDomain, m.UrlCode, "");
                fileSvc.changeIndexFileContent();
            }
        }
 void RemoveIISAndHost(LandingPage landingPage)
 {
     if (!string.IsNullOrEmpty(landingPage.Domain) && IsSystemPublishDomain(landingPage.BaseDomain) == false)
     {
         if (landingPage.Domain == landingPage.BaseDomain && string.IsNullOrEmpty(landingPage.UrlCode))
         {
             var filesvc = new FileServices.FileBuilder();
             if (filesvc.CanRemoveIIS(landingPage.BaseDomain))
             {
                 new IIS.IISServerManager().RemoveWebsite(landingPage.BaseDomain);
             }
         }
     }
     if (!string.IsNullOrEmpty(landingPage.UrlCode) && !string.IsNullOrEmpty(landingPage.BaseDomain))
     {
         new Core.BLL.FileServices.FileBuilder(landingPage.BaseDomain, landingPage.UrlCode, "").Remove();
     }
 }