public DepartmentInfo GetDepartmentByCode( string code ) { GetDepartmentByCodeRequest request = new GetDepartmentByCodeRequest() { Code = code }; GetDepartmentResponse response = CallWebService< IOrgUnitManagementServicev1_0, GetDepartmentByCodeRequest, GetDepartmentResponse>( m_service1_0, request, ( s, q ) => s.GetDepartmentByCode( q ) ); return response.Department; }
/// <remarks/> public void GetDepartmentByCodeAsync(GetDepartmentByCodeRequest GetDepartmentByCodeRequest) { this.GetDepartmentByCodeAsync(GetDepartmentByCodeRequest, null); }
/// <remarks/> public void GetDepartmentByCodeAsync(GetDepartmentByCodeRequest GetDepartmentByCodeRequest, object userState) { if ((this.GetDepartmentByCodeOperationCompleted == null)) { this.GetDepartmentByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDepartmentByCodeOperationCompleted); } this.InvokeAsync("GetDepartmentByCode", new object[] { GetDepartmentByCodeRequest}, this.GetDepartmentByCodeOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginGetDepartmentByCode(GetDepartmentByCodeRequest GetDepartmentByCodeRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDepartmentByCode", new object[] { GetDepartmentByCodeRequest}, callback, asyncState); }