예제 #1
0
        public async Task <T> ExecuteRestApiAsync <T>(string apiName, object inputObject)
        {
            if (string.IsNullOrEmpty(apiName))
            {
                throw new ArgumentNullException("apiName");
            }
            if (inputObject == null)
            {
                throw new ArgumentNullException("inputObject");
            }

            var response = await _serviceHttpClient.HttpPostRestApiAsync <T>(apiName, inputObject);

            return(response);
        }