internal static ConfigurationOption ConfigurationOptionFromDTO(this ConfigurationOptionDTO sourceOption) { var result = new ConfigurationOption(sourceOption.Name, sourceOption.Description); result.AddApplications(sourceOption.Applications); result.AddRuntimes(sourceOption.Runtimes); return(result); }
internal static ConfigurationOptionDTO ConfigurationOptionsToDTO(this ConfigurationOption sourceOption) { var result = new ConfigurationOptionDTO { Name = sourceOption.Name, Description = sourceOption.Description, Applications = sourceOption.Applications.ToArray(), Runtimes = sourceOption.Runtimes.ToArray(), }; return(result); }