Example #1
0
        public override void DeleteSpecialDayGroup(string Token)
        {
            ConfStorageLoad();
            EventServerLoad();

            if (ConfStorage.SpecialDayGroupList.ContainsKey(Token))
            {
                ConfStorage.SpecialDayGroupList.Remove(Token);
                EventServer.ConfigurationSpecialDayGroupRemovedEvent(this, Token);
                LoggingService.LogMessage(string.Format("SpecialDayGroup with token '{0}' was deleted.", Token), DUT.PACS.Simulator.ExternalLogging.MessageType.Message);
            }
            else
            {
                string message = string.Format("SpecialDayGroup with token {0} does not exist", Token);
                LoggingService.LogMessage(message, DUT.PACS.Simulator.ExternalLogging.MessageType.Error);
                FaultLib.ReturnFault(message, new string[] { "Sender", "InvalidArgVal", "NotFound" });
            }

            EventServerSave();
            ConfStorageSave();
        }