Exemple #1
0
        // GET api/<controller>
        public Node <int> Get()
        {
            var Contacts     = GenerateContacts.PopulateContacts(1000);
            var Connections  = GenerateConnections.PopulateConnections(Contacts);
            var Adapter      = new NodeAdapter();
            var ContactsNode = Adapter.FromContacts(Contacts, Connections);

            return(ContactsNode);
        }
 private List <ContactConnection> GetConnections(List <ContactEntity> Contacts, int MaxConnections)
 {
     return(GenerateConnections.PopulateConnections(Contacts, MaxConnections));
 }
 // GET api/connection
 public IEnumerable <ContactConnection> Get()
 {
     return(GenerateConnections.PopulateConnections(GenerateContacts.PopulateContacts(1000)));
 }