示例#1
0
        public async Task <IActionResult> Index()
        {
            var posts = await _postManager.GetLastPosts();

            var models = Mapper.Map <IList <PostViewModel> >(posts);

            return(View("Index", models));
        }