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