Inheritance: TheAirline.Models.BaseModel
Ejemplo n.º 1
0
        public static void AddConfiguration(Configuration configuration)
        {
            if (configurations.Find(c => c.Name == configuration.Name && !c.Standard) != null)
            {
                configurations.RemoveAll(c => c.Name == configuration.Name);
            }

            configurations.Add(configuration);
        }
Ejemplo n.º 2
0
 //returns the list of configurations for a specific type
 public static List<Configuration> GetConfigurations(Configuration.ConfigurationType type)
 {
     return configurations.FindAll(c => c.Type == type);
 }