public async Task <IActionResult> CreateIdentity([FromBody] CreateIdentityCommand createIdentityCommand) { return(Created(string.Empty, await this.Mediator.Send(createIdentityCommand))); }
public async Task <IActionResult> Register([FromBody] CreateIdentityCommand command) { return(Ok(await mediator.Send(command))); }