Exemple #1
0
        public string SaveActiveBlacklist(string goodsIds, int type)
        {
            var         strs = goodsIds.Split('|');
            List <Guid> list = new List <Guid>();

            foreach (var str in strs)
            {
                if (!string.IsNullOrWhiteSpace(str))
                {
                    list.Add(Utils.ParseGuid(str));
                }
            }

            var  loginUser = (UserInfo)ViewBag.User;
            Guid managerId = (Guid)ViewBag.ManagerId;
            var  res       = _active.SaveBlackFoActive(list, managerId, type);

            return(Utils.SerializeObject(res));
        }