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); }
public async Task <IActionResult> GetContactData(GetContactDataRequest model) { List <ContactResponse> response = await _contactService.GetPaginDataByUserId(model); return(Ok(response)); }