///<summary></summary>
        public static AppointmentRule CreateAppointmentRule(string desc, string codeStart, string codeEnd)
        {
            AppointmentRule apptRule = new AppointmentRule()
            {
                RuleDesc  = desc,
                CodeStart = codeStart,
                CodeEnd   = codeEnd,
                IsEnabled = true
            };

            AppointmentRules.Insert(apptRule);
            AppointmentRules.RefreshCache();
            return(apptRule);
        }