Пример #1
0
        public ActionResult AddImg(int goosId, List <string> imagerUrlsList)
        {
            var list = new List <GoodsImg>();

            foreach (var item in imagerUrlsList)
            {
                list.Add(new GoodsImg
                {
                    GoodsId = goosId,
                    Path    = item
                });
            }

            var business = new GoodsBusiness();

            business.AddImage(list);

            return(View());
        }
Пример #2
0
 public GoodsController()
 {
     _goodsBusiness = new GoodsBusiness();
 }