private void AppendMasterControl(IEnumerable <TransferControlMaster> files,
                                         Models.TransferControl transferControl)
        {
            try
            {
                var transferControlWriter = new DataFileRepository <TransferControlMaster>();

                WriteFile(transferControlWriter, files);

                FtpAppendTransferControl();

                transferControl.ProcessedDate = DateTime.Now;
                _transferControlRepository.UpdateTransferControl(transferControl);

                MoveTransferControlMasterToProcessedFolder();
            }
            catch (Exception exception)
            {
                _log.Exception("Inbound : Failure transmitting outbound master control file ", exception);
                throw;
            }
        }
示例#2
0
 private void UpdateTransferControl(TransferControl.Models.TransferControl transferControl)
 {
     transferControl.ProcessedDate = DateTime.Now;
     _transferControlRepository.UpdateTransferControl(transferControl);
 }