示例#1
0
        public async Task <ListResultDto <ContentDto> > GetAll()
        {
            var @contents = await _contentManager.GetAllAsync();

            return(new ListResultDto <ContentDto>(ObjectMapper.Map <List <ContentDto> >(@contents)));
        }
示例#2
0
        public async Task <ListResultDto <ContentDto> > GetAll()
        {
            var contents = await _contentManager.GetAllAsync();

            return(new ListResultDto <ContentDto>(contents.MapTo <List <ContentDto> >()));
        }