public CourseTemplateInfo CreateCourseTemplate(
     string name, string code, string path,
     Nullable<bool> isActive, Nullable<DateTime> start, Nullable<DateTime> end)
 {
     CreateCourseTemplateRequest request = new CreateCourseTemplateRequest() {
         Name = name,
         Code = code,
         Path = path,
         IsActive = isActive ?? true,
         StartDate = start ?? DateTime.MinValue,
         EndDate = end ?? DateTime.MinValue
     };
     CreateCourseTemplateResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateCourseTemplateRequest, CreateCourseTemplateResponse>(
         m_service1_0, request, ( s, q ) => s.CreateCourseTemplate( q ) );
     return response.CourseTemplate;
 }
Esempio n. 2
0
 /// <remarks/>
 public void CreateCourseTemplateAsync(CreateCourseTemplateRequest CreateCourseTemplateRequest)
 {
     this.CreateCourseTemplateAsync(CreateCourseTemplateRequest, null);
 }
Esempio n. 3
0
 /// <remarks/>
 public void CreateCourseTemplateAsync(CreateCourseTemplateRequest CreateCourseTemplateRequest, object userState)
 {
     if ((this.CreateCourseTemplateOperationCompleted == null)) {
         this.CreateCourseTemplateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCourseTemplateOperationCompleted);
     }
     this.InvokeAsync("CreateCourseTemplate", new object[] {
                 CreateCourseTemplateRequest}, this.CreateCourseTemplateOperationCompleted, userState);
 }
Esempio n. 4
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateCourseTemplate(CreateCourseTemplateRequest CreateCourseTemplateRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateCourseTemplate", new object[] {
                 CreateCourseTemplateRequest}, callback, asyncState);
 }