public bool RouteValidation(Route originalFile, Route updatedFile) { _globalVariablesService.SetGlobalStartDateOfChange(DateTime.UtcNow); if (updatedFile.StartDate.AddYears(1) < updatedFile.EndDate) { _auditLogService.AddRecord(false, TypeOfChange.RouteNotValid, typeof(Passenger).Name, "", null); _fileService.WriteOutputFile(); return(false); } return(true); }
private void AddRecord(bool isPlanned, TypeOfChange typeOfChange, string originalValue, string newValue, List <Approval> approvalList, DateTime dateOfChang, List <string> affectedDays = default) { _auditLogService.AddRecord(isPlanned, typeOfChange, originalValue, newValue, approvalList, dateOfChang, affectedDays); }