public static GraphState loadGraphFromDb(Guid clientGuid) { if (clientGraphs.ContainsKey(clientGuid)) { var dbFacade = new DbFacade(); clientGraphs[clientGuid] = new PathFinder(dbFacade.loadGraphFromDb()); return clientGraphs[clientGuid].getGraphState(); } return new GraphState(null, null, "You are not registered in system!"); }
public string LoadGraphToDb(List<DbRecord> graph) { var dbFacade = new DbFacade(); return dbFacade.loadGraphToDb(graph); }