public void RemoveEnrollPlan(Guid enrollPlanId)
 {
     using (UniversityEnrollPlanRepository enrollPlanRepository = new UniversityEnrollPlanRepository())
     {
         var enrollPlan = enrollPlanRepository.Get(enrollPlanId);
         if (enrollPlan != null)
         {
             enrollPlanRepository.Remove(enrollPlan);
             enrollPlanRepository.Commit();
         }
     }
 }
        public void UpdateEnrollPlan(UniversityEnrollPlan enrollPlan)
        {
            if (enrollPlan == null)
                throw new ArgumentNullException("enrollPlan");

            using (UniversityEnrollPlanRepository enrollPlanRepository = new UniversityEnrollPlanRepository())
            {
                var enroll = enrollPlanRepository.Get(enrollPlan.Id);
                if (enroll == null)
                {
                    // TODO: throw not existing exception
                }
                enrollPlanRepository.Modify(enrollPlan);
                enrollPlanRepository.Commit();
            }
        }