Esempio n. 1
0
        public ActionResult AddFollower(string name)
        {
            List <Person> lstFollower = new List <Person>();
            string        message     = string.Empty;
            int           userId      = 0;

            if (Session["UserInfo"] != null && userId == 0)
            {
                Person userModel = (Person)Session["UserInfo"];
                userId = userModel.user_id;
            }
            string isValidUser = string.Empty;

            lstFollower = _Repository.AddFollowerByUser(userId, name, out message);

            return(Json(new { lstFollower = lstFollower, isValid = message }, JsonRequestBehavior.AllowGet));
        }