// POST api/accounts/FindByEmail public async override Task <Web.Api.Identity.Accounts.FindUserResponse> FindByEmail(StringInputParameter email, ServerCallContext context) { await _findUserUseCase.Handle(new Web.Api.Core.DTO.UseCaseRequests.FindUserRequest(email.Value, string.Empty, string.Empty), _findUserPresenter); return(_findUserPresenter.Response); }
public async override Task <Web.Api.Identity.Response> Lock(StringInputParameter id, ServerCallContext context) { await _lockUserUseCase.Lock(id.Value, _lockUserPresenter); return(_lockUserPresenter.Response); }
// POST api/accounts public async override Task <Web.Api.Identity.Accounts.DeleteUserResponse> Delete(StringInputParameter id, ServerCallContext context) { await _deleteUserUseCase.Handle(new Web.Api.Core.DTO.UseCaseRequests.DeleteUserRequest(id.Value), _deleteUserPresenter); return(_deleteUserPresenter.Response); }