Exemple #1
0
        public async Task <IResponseBase> getreqAsync([FromQuery] MyGettReq req)
        {
            var postReq = new MyPostThirdReq()
            {
                heihei = new List <int>()
                {
                    1, 2, 3
                }
            };
            var values = await this.ApiClient.ExecuteAsync(postReq);

            return(new ResponseBase <IEnumerable <string> >(new string[] { "value1", "value2" }));
        }
Exemple #2
0
 public IResponseBase PostThirdReq([FromBody] MyPostThirdReq req)
 {
     throw new Exception("aaaaaaaaaaaaaa");
     return(new ResponseBase <IEnumerable <string> >(new string[] { "value5", "value6" }));
 }