public SectionInfo GetSectionByCode(string code) { GetSectionByCodeRequest request = new GetSectionByCodeRequest() { Code = code }; GetSectionResponse response = CallWebService < IOrgUnitManagementServicev1_0, GetSectionByCodeRequest, GetSectionResponse>( m_service1_0, request, (s, q) => s.GetSectionByCode(q)); return(response.Section); }
public SectionInfo GetSection(Identifier orgUnitId) { GetSectionRequest request = new GetSectionRequest() { OrgUnitId = orgUnitId }; GetSectionResponse response = CallWebService < IOrgUnitManagementServicev1_0, GetSectionRequest, GetSectionResponse>( m_service1_0, request, (s, q) => s.GetSection(q)); return(response.Section); }