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