public DepartmentInfo CreateDepartment(
     string name, string code, string path,
     Nullable<bool> isActive, Nullable<DateTime> start, Nullable<DateTime> end)
 {
     CreateDepartmentRequest request = new CreateDepartmentRequest() {
         Name = name,
         Code = code,
         Path = path,
         IsActive = isActive ?? true,
         StartDate = start ?? DateTime.MinValue,
         EndDate = end ?? DateTime.MinValue
     };
     CreateDepartmentResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateDepartmentRequest, CreateDepartmentResponse>(
         m_service1_0, request, ( s, q ) => s.CreateDepartment( q ) );
     return response.Department;
 }
Exemple #2
0
 /// <remarks/>
 public void CreateDepartmentAsync(CreateDepartmentRequest CreateDepartmentRequest)
 {
     this.CreateDepartmentAsync(CreateDepartmentRequest, null);
 }
Exemple #3
0
 /// <remarks/>
 public void CreateDepartmentAsync(CreateDepartmentRequest CreateDepartmentRequest, object userState)
 {
     if ((this.CreateDepartmentOperationCompleted == null)) {
         this.CreateDepartmentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDepartmentOperationCompleted);
     }
     this.InvokeAsync("CreateDepartment", new object[] {
                 CreateDepartmentRequest}, this.CreateDepartmentOperationCompleted, userState);
 }
Exemple #4
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateDepartment(CreateDepartmentRequest CreateDepartmentRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateDepartment", new object[] {
                 CreateDepartmentRequest}, callback, asyncState);
 }