public void SetProvSpecMon(ProviderSpecDeliveryMonitoring.Occurrence Occurrence, string ProvSpecMonValue)
        {
            ProviderSpecDeliveryMonitoring provSpecMon = GetProvSpecMon(Occurrence);

            if (ProvSpecMonValue != null && ProvSpecMonValue.Length != 0)
            {
                if (provSpecMon == null)
                {
                    provSpecMon = this.CreateProviderSpecDeliveryMonitoring();
                    provSpecMon.ProvSpecDelMonOccur = Occurrence.ToString();
                }
                provSpecMon.ProvSpecDelMon = ProvSpecMonValue;
            }
            else
            if (provSpecMon != null)
            {
                Delete(provSpecMon);
            }
        }
 public ProviderSpecDeliveryMonitoring GetProvSpecMon(ProviderSpecDeliveryMonitoring.Occurrence Occurrence)
 {
     return(this.ProviderSpecDeliveryMonitoringList.Where(x => x.ProvSpecDelMonOccur == Occurrence.ToString()).FirstOrDefault());
 }