Example #1
0
 public async Task<IActionResult> UpdateRule([FromBody] UpdateRuleCommand command)
 {
     return Ok(await _commandBus.SendAsync(command));
 }
Example #2
0
 public async Task <IActionResult> Update(UpdateRuleCommand command)
 => await SendAsync(command, resourceId : command.Id, resource : "rule");
Example #3
0
 public Task <CommandCorrelationId> UpdateRule(UpdateRuleCommand command)
 {
     return(_apiClient.Put <UpdateRuleCommand, CommandCorrelationId>("Rules", command));
 }