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