public async Task <IActionResult> Favoritar(string url) { GitHubApi api = new GitHubApi(); var result = api.GetRepositorio(url); _context.Add(result); await _context.SaveChangesAsync(); return(RedirectToAction("Index", "Favorito")); }