public Task <UserEnvelope> Login([FromBody] Login.Command command, CancellationToken cancellationToken)
 {
     return(_mediator.Send(command, cancellationToken));
 }
 public async Task <UserEnvelope> Login([FromBody] Login.Command command)
 {
     return(await _mediator.Send(command));
 }
        public async Task <IActionResult> Login([FromBody] Login.Command command)
        {
            var result = await _mediator.Send(command);

            return(new OkObjectResult(result));
        }