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)); }
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)); }