Ejemplo n.º 1
0
    // POST api/accounts/FindById
    public async override Task <Web.Api.Identity.Accounts.FindUserResponse> FindById(StringInputParameter id, ServerCallContext context)
    {
        await _findUserUseCase.Handle(new Web.Api.Core.DTO.UseCaseRequests.FindUserRequest(string.Empty, string.Empty, id.Value), _findUserPresenter);

        return(_findUserPresenter.Response);
    }
Ejemplo n.º 2
0
        public async Task <ActionResult> FindById(string id)
        {
            await _findUserUseCase.Handle(new FindUserRequest(string.Empty, string.Empty, id), _findUserPresenter);

            return(_findUserPresenter.ContentResult);
        }