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)); }
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)); } }