예제 #1
0
 private static CourseOfferingInfo CreateCourseOffering(
     CourseTemplateInfo template, CourseOffering offeringInputData)
 {
     return(m_ouStub.CreateCourseOffering(
                offeringInputData.Name, offeringInputData.Code, offeringInputData.Path,
                template.OrgUnitId, true, null, null, true, true));
 }
예제 #2
0
        private static void DeleteCourseOffering(CourseOffering offering)
        {
            CourseOfferingInfo offeringBeingDeleted = m_ouStub.GetCourseOfferingByCode(offering.Code);

            if (offeringBeingDeleted != null)
            {
                m_ouStub.DeleteCourseOffering(offeringBeingDeleted.OrgUnitId);
            }
            else
            {
                Console.Out.WriteLine(String.Format(
                                          "Unable to find course offering by code {0}!", offering.Code));
            }
        }