public async Task <LockUserResponse> Handle(LockUserCommand request, CancellationToken cancellationToken) { bool response = await _useCase.Lock(request.Id, _presenter); return(_presenter.Response); }
public async override Task <Web.Api.Identity.Response> Lock(StringInputParameter id, ServerCallContext context) { await _lockUserUseCase.Lock(id.Value, _lockUserPresenter); return(_lockUserPresenter.Response); }