public static API_IIS7 delete_Website(this API_IIS7 iis7, Site site)
 {
     iis7.serverManager.Sites.Remove(site);
     iis7.commitChanges();
     "Deleted Website with Id {0} and name {1}".info(site.Id, site.str());
     return(iis7);
 }
 public static Site add_Website(this API_IIS7 iis7, string websiteName, string serverRoot, int port)
 {
     if (iis7.hasWebsite(websiteName).isFalse())
     {
         var site = iis7.serverManager.Sites.Add(websiteName, serverRoot, port);
         iis7.commitChanges();
         if (site.notNull())
         {
             "Created new website called {0} on port {1} at folder {2}".info(websiteName, serverRoot, port);
         }
         else
         {
             "Could not created website with the provided details".error();
             return(null);
         }
     }
     else
     if (iis7.ShowErrorIfTryingToCreateAWebsiteThatAlreadyExists)
     {
         "Could not add site since it already existed a website with the same name: {0}".error(websiteName);
     }
     return(iis7.website(websiteName));
 }
 public static API_IIS7 commit(this API_IIS7 iis7)
 {
     return(iis7.commitChanges());
 }