public async Task <List <RepositoryResumeViewModel> > ListTop(string language, int qtd) { var res = await _githubService.GetRepositories($"language:{language}", "stars", "desc", qtd); res.Items.ForEach(x => { x.OwnerId = x.Owner.Id; _repositoryRepository.Upsert(x); _ownerRepository.Upsert(x.Owner); }); return(_mapper.Map <List <RepositoryResumeViewModel> >(res.Items)); }