public GetRelationship ( |
||
uri | ||
return |
public IList <Relationship> GetAllPathsTo(Node toNode, RequestResult result) { IList <Relationship> relationShips = new List <Relationship>(); JArray array = JArray.Parse(result.GetResponseData()); foreach (var tkn in array) { Node node = new Node(); node.SetLocation(new Uri(tkn["end"].ToString())); if (node.Id == toNode.Id) { Relationship relationShip = _relationShipRepo.GetRelationship(new Uri(tkn["self"].ToString())); relationShips.Add(relationShip); } } return(relationShips); }
public static Relationship Get(int relationshipID) { Persistance.RelationShipRepo db = new RelationShipRepo(); return db.GetRelationship(relationshipID.ToString()); }