public async Task <ActionResult> Post(CreateFederation command) { await _dispatcher.SendAsync(command.BindId(c => c.Id)); return(Accepted()); }
public async Task <IActionResult> Post(CreateFederation command) => await SendAsync(command.BindId(c => c.Id), resourceId : command.Id, resource : "federations");