コード例 #1
0
        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!");
        }
コード例 #2
0
 public string LoadGraphToDb(List<DbRecord> graph)
 {
     var dbFacade = new DbFacade();
     return dbFacade.loadGraphToDb(graph);
 }