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