public IHttpActionResult OrderInfoGet([FromBody] InputOrderGetDto request) { _defaultOpenApiClient = new DefaultOpenApiClient(_url, _appKey, _sysSecret, ApiGlobalConst.MethodConst.OpenApiOrderGet); _defaultOpenApiClient.SetBizContent(request.ToJson()); var resultHtml = _defaultOpenApiClient.Excute(); var result = resultHtml.FromJson <OutputResponseDto>(); return(Json(result)); }
public async Task <IHttpActionResult> OrderInfoGetAsync([FromBody] InputOrderGetDto request) { _defaultOpenApiClient = new DefaultOpenApiClient(_url, _appKey, _sysSecret, ApiGlobalConst.MethodConst.OpenApiOrderGet); _defaultOpenApiClient.SetBizObject(request); var resultHtml = await _defaultOpenApiClient.ExcuteAsync(); var result = resultHtml.FromJson <OutputResponseDto>(); return(Json(result)); }