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; } }
private void UpdateTransferControl(TransferControl.Models.TransferControl transferControl) { transferControl.ProcessedDate = DateTime.Now; _transferControlRepository.UpdateTransferControl(transferControl); }