示例#1
0
 private void AddHistoryItem(HistoryChangeType historyChangeType, object trackedObject, string changeType, long?commitmentId, long?apprenticeshipId, CallerType updatedByRole, string userId, long?providerId, long employerAccountId, string updatedByName)
 {
     _historyItems.Add(new HistoryItem(historyChangeType, trackedObject, commitmentId, apprenticeshipId, userId, updatedByRole.ToString(), changeType, providerId, employerAccountId, updatedByName));
 }
        public async Task <Types.Commitment.TransferRequest> GetTransferRequest(long transferRequestId, long accountId, CallerType callerType)
        {
            _logger.Trace($"Getting transfer request {transferRequestId} for caller type {callerType.ToString()}", accountId: accountId);

            var response = await _mediator.SendAsync(new GetTransferRequestRequest
            {
                Caller            = new Caller(accountId, callerType),
                TransferRequestId = transferRequestId
            });

            _logger.Info($"Retrieved transfer request {transferRequestId}", accountId: accountId);

            return(_transferRequestMapper.MapFrom(response.Data));
        }