public static IEnumerable <GenFormEnvironment> GetEnvironments(string machine)
        {
            var list = GenFormEnvironmentCollection.Create();

            if (!list.Any(e => e.MachineName == System.Environment.MachineName && e.Name == "TestGenForm"))
            {
                list.Add(GenFormEnvironment.CreateTest());
            }
            return(list.Where(e => e.MachineName == machine));
        }
        public static bool AddNewEnvironment(EnvironmentDto dto)
        {
            var list = GenFormEnvironmentCollection.Create();

            try
            {
                list.Add(GenFormEnvironment.Create(dto.Name, dto.provider, dto.Database, dto.LogPath, dto.ExportPath));
                return(true);
            }
            catch (System.Exception)
            {
                return(false);
            }
        }