Example #1
0
        public object AcceptInStorageList(List <string> obj)
        {
            List <string> slist = obj;

            if (slist.Count > 0)
            {
                slist.ForEach(p =>
                {
                    SampleOper.AcceptInStorage(p);
                });
            }
            ;
            return(Ok());
        }
Example #2
0
        public object AcceptInStorage(dynamic obj)
        {
            string id = (string)obj.styleId;

            if (id != "")
            {
                var sample = SampleOper.AcceptInStorage(id);
                //发钉钉消息

                if (sample != null)
                {
                    return(Ok("ok"));
                }
                else
                {
                    return(BadRequest("样衣ID不存在"));
                }
            }
            else
            {
                return(BadRequest("没有在请求中找到样衣ID"));
            }
        }