Esempio n. 1
0
        public void Search(string userName)
        {
            var user = _friendManager.SearchFriend(userName, Context.User.Identity.GetUserId());

            if (user != null)
            {
                Clients.Caller.searchResults(user);
            }
            else
            {
                Clients.Caller.noResults("No result");
            }
        }