Example #1
0
        public ActionResult Buscar()
        {
            string pesquisar = "";
            var    repo      = new FriendsRepository();

            return(View(repo.GetFriendByString(pesquisar)));
        }
Example #2
0
        public ActionResult Buscar(string pesquisa)
        {
            try {
                var repo = new FriendsRepository();

                return(View(repo.GetFriendByString(pesquisa)));
            } catch {
                return(View());
            }
        }