Esempio n. 1
0
        public async Task <ContactsContacts> GetContacts()
        {
            var request = new GetContactsRequest(string.Empty);

            await _sender.Send(request);

            var response = await _sender.Receive <ContactsContacts>(request);

            return(response);
        }
Esempio n. 2
0
        public async Task <ContactsContacts> GetContacts(IList <int> contactIds = null)
        {
            var request = new GetContactsRequest(contactIds);
            await _sender.Send(request);

            await _sender.Receive(request);

            return(new ContactsContacts
            {
                Contacts = request.Contacts,
                Users = request.Users,
            });
        }