示例#1
0
        public async Task <List <ContactResponse> > GetPaginDataByUserId(GetContactDataRequest model)
        {
            string         userId   = _authHelper.GetUserId();
            List <Contact> contacts = await _contactRepository.GetPaginDataByUserId(userId, model.SkipCount);

            List <ContactResponse> response = _mapper.Map <List <Contact>, List <ContactResponse> >(contacts);

            return(response);
        }
示例#2
0
        public async Task <IActionResult> GetContactData(GetContactDataRequest model)
        {
            List <ContactResponse> response = await _contactService.GetPaginDataByUserId(model);

            return(Ok(response));
        }