public async Task <IActionResult> Index() { var posts = await _postManager.GetLastPosts(); var models = Mapper.Map <IList <PostViewModel> >(posts); return(View("Index", models)); }