Exemplo n.º 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);
        }
Exemplo n.º 2
0
 // GET api/contacts
 public IEnumerable <ContactEntity> Get()
 {
     return(GenerateContacts.PopulateContacts(10000));
 }
Exemplo n.º 3
0
 private List <ContactEntity> GetContacts(int NotOfContacts)
 {
     return(GenerateContacts.PopulateContacts(NotOfContacts));
 }
 // GET api/connection
 public IEnumerable <ContactConnection> Get()
 {
     return(GenerateConnections.PopulateConnections(GenerateContacts.PopulateContacts(1000)));
 }