Exemplo n.º 1
0
        public async Task <ListResultDto <WidgetDto> > GetPublishedAsync()
        {
            var widgets = await _repository.GetPublished();

            return(new ListResultDto <WidgetDto>(ObjectMapper.Map <List <Widget>, List <WidgetDto> >(widgets)));
        }