Beispiel #1
0
        public async Task <PagedResult <ContactDto> > GetContactsAsync(ContactQueryParamsDto queryParams)
        {
            var userId   = this.GetCurrentUserId();
            var contacts = await _contactDataService
                           .GetContactsByUserAsync(userId, queryParams);

            var result = contacts.Project <Contact, ContactDto>(_mapper.ConfigurationProvider);

            return(result);
        }