public void Save() { var file = Path.GetFileNameWithoutExtension(dbFilePath); var newPath = dbFilePath.Replace(file, $"{file}-{DateTime.Now:yyyyMMddhhmmss}"); File.Move(dbFilePath, newPath); RouteRepository.SaveRoute(dbFilePath, Route); }
public void SaveRoute(Route route) { rep.SaveRoute(route); }