public async Task <IViewComponentResult> InvokeAsync(long personID) { var viewModel = new List <SkillViewModel>(); var reponse = _skillService.Where(x => x.PersonID == personID); if (reponse.IsSuccess) { foreach (var item in reponse.Content) { viewModel.Add(_mapper.Map <SkillViewModel>(item)); } } return(await Task.FromResult((IViewComponentResult)View("Skills", viewModel))); }