public async Task <ContactsContacts> GetContacts() { var request = new GetContactsRequest(string.Empty); await _sender.Send(request); var response = await _sender.Receive <ContactsContacts>(request); return(response); }
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, }); }