public ActionResult Buscar() { string pesquisar = ""; var repo = new FriendsRepository(); return(View(repo.GetFriendByString(pesquisar))); }
public ActionResult Buscar(string pesquisa) { try { var repo = new FriendsRepository(); return(View(repo.GetFriendByString(pesquisa))); } catch { return(View()); } }