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