Beispiel #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);
        }
        public IEnumerable <ContactConnection> Get(List <ContactEntity> Contacts, int MaxConnections)
        {
            var Generator = new GenerateConnections(MaxConnections);

            return(Generator.Generate(Contacts));
        }
 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)));
 }