public async Task <IActionResult> AgregarAmigo(string user) { if (await _repository.AgregarAmigo(user, User.Identity.Name) == 1) { return(RedirectToAction("AmigoAgregado")); } else if (await _repository.AgregarAmigo(user, User.Identity.Name) == 2) { return(RedirectToAction("ErrorAmigo")); } else { return(RedirectToAction("Index")); } }