コード例 #1
0
        public IHttpActionResult DirectOrderAdd([FromBody] InputDirectOrderDto request)
        {
            _defaultOpenApiClient = new DefaultOpenApiClient(_url, _appKey, _sysSecret, ApiGlobalConst.MethodConst.OpenApiDirectOrderAdd);
            _defaultOpenApiClient.SetBizContent(request.ToJson());
            var resultHtml = _defaultOpenApiClient.Excute();
            var result     = resultHtml.FromJson <OutputResponseDto>();

            return(Json(result));
        }
コード例 #2
0
        public async Task <IHttpActionResult> DirectOrderAddAsync([FromBody] InputDirectOrderDto request)
        {
            _defaultOpenApiClient = new DefaultOpenApiClient(_url, _appKey, _sysSecret, ApiGlobalConst.MethodConst.OpenApiDirectOrderAdd);
            _defaultOpenApiClient.SetBizObject(request);
            var resultHtml = await _defaultOpenApiClient.ExcuteAsync();

            var result = resultHtml.FromJson <OutputResponseDto>();

            return(Json(result));
        }