public async Task <IViewComponentResult> InvokeAsync() { var blogs = await _blogManager.GetAllBlogs(); var models = _mapper.Map <IList <BlogViewModel> >(blogs); return(View("Blogs", models)); }