public async Task<IActionResult> AddRule([FromBody] AddRuleCommand command) { return Ok(await _commandBus.SendAsync(command)); }
public Task <CommandCorrelationId> AddRule(AddRuleCommand command) { return(_apiClient.Post <AddRuleCommand, CommandCorrelationId>("Rules", command)); }