public async Task <IList <CountryDto> > GetAsync(int userId, PagingOptions pagingOptions) { var models = await _addressRepository.GetAsync(userId, null, pagingOptions); var results = CountryDtoMapper.Map(models); return(results); }
public async Task <CountryDto> GetAsync(int userId, int id) { var model = await _addressRepository.GetAsync(userId, id); var result = CountryDtoMapper.Map(model); return(result); }