public CustomOrgUnitInfo CreateCustomOrgUnit(
     string name, string code, string path, Identifier ouTypeId,
     Nullable<bool> isActive, Nullable<DateTime> start, Nullable<DateTime> end)
 {
     CreateCustomOrgUnitRequest request = new CreateCustomOrgUnitRequest() {
         Name = name,
         Code = code,
         Path = path,
         CustomOrgUnitTypeId = ouTypeId,
         IsActive = isActive ?? true,
         StartDate = start ?? DateTime.MinValue,
         EndDate = end ?? DateTime.MinValue
     };
     CreateCustomOrgUnitResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateCustomOrgUnitRequest, CreateCustomOrgUnitResponse>(
         m_service1_0, request, ( s, q ) => s.CreateCustomOrgUnit( q ) );
     return response.OrgUnit;
 }
Example #2
0
 /// <remarks/>
 public void CreateCustomOrgUnitAsync(CreateCustomOrgUnitRequest CreateCustomOrgUnitRequest)
 {
     this.CreateCustomOrgUnitAsync(CreateCustomOrgUnitRequest, null);
 }
Example #3
0
 /// <remarks/>
 public void CreateCustomOrgUnitAsync(CreateCustomOrgUnitRequest CreateCustomOrgUnitRequest, object userState)
 {
     if ((this.CreateCustomOrgUnitOperationCompleted == null)) {
         this.CreateCustomOrgUnitOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCustomOrgUnitOperationCompleted);
     }
     this.InvokeAsync("CreateCustomOrgUnit", new object[] {
                 CreateCustomOrgUnitRequest}, this.CreateCustomOrgUnitOperationCompleted, userState);
 }
Example #4
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateCustomOrgUnit(CreateCustomOrgUnitRequest CreateCustomOrgUnitRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateCustomOrgUnit", new object[] {
                 CreateCustomOrgUnitRequest}, callback, asyncState);
 }