/// <summary> /// lấy danh sách tất cả người dùng /// </summary> /// <exception cref="MISA.OAS.Finance.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>ApiResponse of List<User></returns> public MISA.OAS.Finance.SDK.Client.ApiResponse <List <User> > UsersGetWithHttpInfo() { MISA.OAS.Finance.SDK.Client.RequestOptions localVarRequestOptions = new MISA.OAS.Finance.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; var localVarContentType = MISA.OAS.Finance.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MISA.OAS.Finance.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } // make the HTTP request var localVarResponse = this.Client.Get <List <User> >("/users", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UsersGet", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// lấy danh sách tất cả người dùng /// </summary> /// <exception cref="MISA.OAS.Finance.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>Task of ApiResponse (List<User>)</returns> public async System.Threading.Tasks.Task <MISA.OAS.Finance.SDK.Client.ApiResponse <List <User> > > UsersGetAsyncWithHttpInfo() { MISA.OAS.Finance.SDK.Client.RequestOptions localVarRequestOptions = new MISA.OAS.Finance.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json" }; foreach (var _contentType in _contentTypes) { localVarRequestOptions.HeaderParameters.Add("Content-Type", _contentType); } foreach (var _accept in _accepts) { localVarRequestOptions.HeaderParameters.Add("Accept", _accept); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <List <User> >("/users", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("UsersGet", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }