private string ConvertHTAccessToWebConfig(string htaccess) { var convert = new ConversionManager(); string exstWebConfig = WebConfigPath; string webconfig = string.Empty; if (System.IO.File.Exists(exstWebConfig)) { using (var reader = new StreamReader(exstWebConfig)) { webconfig = reader.ReadToEnd(); } } return(convert.GenerateOrUpdateWebConfig(webconfig, htaccess)); }