Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public async Task <StateDto> GetAsync(int userId, int id)
        {
            var model = await _addressRepository.GetAsync(userId, id);

            var result = StateDtoMapper.Map(model);

            return(result);
        }