public async Task <ListResultDto <WidgetDto> > GetPublishedAsync() { var widgets = await _repository.GetPublished(); return(new ListResultDto <WidgetDto>(ObjectMapper.Map <List <Widget>, List <WidgetDto> >(widgets))); }
public async Task <ListResultDto <WidgetDto> > GetPublishedAsync() { var widgets = await _repository.GetPublished(); return(new ListResultDto <WidgetDto>(ObjectMapper.Map <List <Widget>, List <WidgetDto> >(widgets))); }