Пример #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);
        }
Пример #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);
        }