コード例 #1
0
        public void Create(DataModel.Contexts.BusinessValidationRuleCreate validationRule, Action <ApiResponse <DataModel.BusinessValidationRule> > callback)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder("/validation-rules/");

            this.client.DoPostRequest(uriBuilder.Uri, validationRule, callback);
        }
コード例 #2
0
        public async Task <DataModel.BusinessValidationRule> Create(DataModel.Contexts.BusinessValidationRuleCreate validationRule)
        {
            UriBuilder uriBuilder = this.client.GetUriBuilder("/validation-rules/");

            return(await this.client.DoPostRequest <DataModel.BusinessValidationRule, DataModel.Contexts.BusinessValidationRuleCreate>(uriBuilder.Uri, validationRule).ConfigureAwait(false));
        }