Beispiel #1
0
 /// <summary>
 /// Register
 /// </summary>
 /// <param name="definition"></param>
 /// <returns></returns>
 public WeekendDefinitionRegister Register(IBizWeekendDefinition definition)
 {
     if (definition != null)
     {
         CustomDefinitions.Add(definition);
     }
     return(this);
 }
Beispiel #2
0
        /// <summary>
        /// Register
        /// </summary>
        /// <param name="definition"></param>
        internal static void Register(IBizWeekendDefinition definition)
        {
            if (definition == null)
            {
                return;
            }

            Register(
                definition.Country.ToCode(),
                definition.WeekendType.ToWeekendDictionary());
        }