Exemplo n.º 1
0
        public ActionResult SearchUsersByName(string name)
        {
            List <Person> lstFollower = new List <Person>();
            string        isValidUser = string.Empty;

            lstFollower = _Repository.getUser(name);

            return(Json(new { lstFollower = lstFollower, isValid = lstFollower.Any()?"User Found":"No user Found" }, JsonRequestBehavior.AllowGet));
        }