public override async Task <StatusReply> GetStatus(AccountId request, ServerCallContext context) { var query = new GetAccountStatusQuery(request.ToAccountId()); var data = await _mediator.Send(query); return(new StatusReply { IsActive = data.IsActive }); }
public override async Task <Confirming> ResendSignUpConfirmation(AccountId request, ServerCallContext context) { var command = new ResendSignUpConfirmationCommand(request.ToAccountId(), _language); var confirmationId = await _mediator.Send(command, context.CancellationToken); return(new Confirming { Id = confirmationId.ToString() }); }