コード例 #1
0
        public IViewComponentResult Invoke()
        {
            var about = _aboutRepository.GetAboutUsItems();

            var model = _mapper.Map <IEnumerable <AboutUsItem>, IEnumerable <AboutViewModel> >(about);

            return(View(model));
        }