public async Task <IViewComponentResult> InvokeAsync() { var model = _infomationService.GetAll(); var result = _mapper.Map <IEnumerable <Infomation>, IEnumerable <InfomationViewModel> >(model); return(View(result)); }
public IActionResult Index() { var model = _infomationService.GetAll(); var result = _mapper.Map <IEnumerable <Infomation>, IEnumerable <InfomationViewModel> >(model); return(View(result)); }