コード例 #1
0
ファイル: StateService.cs プロジェクト: Sakchai/Store
        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
ファイル: StateService.cs プロジェクト: Sakchai/Store
        public async Task <StateDto> GetAsync(int userId, int id)
        {
            var model = await _addressRepository.GetAsync(userId, id);

            var result = StateDtoMapper.Map(model);

            return(result);
        }