public void RemoveFAM(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType)
        {
            LearningDeliveryFAM lFAM = GetFAM(FAMType);

            if (lFAM != null)
            {
                Delete(lFAM);
            }
        }
        public void SetFAM(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType, string FAMCode)
        {
            LearningDeliveryFAM lFAM = GetFAM(FAMType);

            if (lFAM == null)
            {
                lFAM = this.CreateLearningDeliveryFAM();
                lFAM.LearnDelFAMType = FAMType.ToString();
            }
            lFAM.LearnDelFAMCode = FAMCode;
        }
        public string GetFAMCode(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType)
        {
            LearningDeliveryFAM lFAM = GetFAM(FAMType);

            if (lFAM == null)
            {
                return(null);
            }
            else
            {
                return(lFAM.LearnDelFAMCode);
            }
        }
 public LearningDeliveryFAM GetFAM(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType)
 {
     return(this.LearningDeliveryFAMList.Where(x => x.LearnDelFAMType == FAMType.ToString()).FirstOrDefault());
 }