示例#1
0
        public JsonResult NewTopicPeople()
        {
            UserAuth();
            var topicid   = Request.Form["topicid"];
            var pps       = Request.Form["pps"];
            var splitstrs = pps.Split(new string[] { " @" }, StringSplitOptions.RemoveEmptyEntries);
            var pplist    = new List <string>();

            foreach (var PP in splitstrs)
            {
                if (PP.Trim().ToUpper().Contains(ViewBag.username.ToUpper()))
                {
                    continue;
                }

                pplist.Add(PP.Replace("@", "").Trim());
            }

            CoTopicVM.UpdateTopicPeople(topicid, pplist, this);

            var ret = new JsonResult();

            ret.Data = new { sucess = true };
            return(ret);
        }