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()); }
public GoodsController() { _goodsBusiness = new GoodsBusiness(); }