public ActionResult Add(ShopBonusModel model) { string mapPath = IOHelper.GetMapPath(model.ShareImg); Guid guid = Guid.NewGuid(); string str = string.Concat(guid.ToString(), (new FileInfo(mapPath)).Extension); string mapPath1 = IOHelper.GetMapPath("/Storage/Shop/Bonus"); if (!Directory.Exists(mapPath1)) { Directory.CreateDirectory(mapPath1); } IOHelper.CopyFile(mapPath, mapPath1, false, str); model.ShareImg = string.Concat("/Storage/Shop/Bonus/", str); _bonusService.Add(model, base.CurrentSellerManager.ShopId); return(RedirectToAction("Management")); }
/// <summary> /// 添加红包 /// </summary> public static void Add(ShopBonusInfo model, long shopid) { _iShopBonusService.Add(model, shopid); }