コード例 #1
0
        public ActionResult <IEnumerable <TweetResponseDto> > Get()
        {
            var result       = _tweetService.AllTweet();
            var tweets       = result.ToList();
            var mappedTweets = _mapper.Map <IEnumerable <Tweet>, IEnumerable <TweetResponseDto> >(tweets);

            return(mappedTweets.ToList());
        }