Example #1
0
        public async Task <ActionResult> Post(CreateFederation command)
        {
            await _dispatcher.SendAsync(command.BindId(c => c.Id));

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