Пример #1
0
 public bool UpdateBrand(string brandID, string name, string anotherName, string countryCode, string cityCode, string icopath, int status, string remark, string brandStyle, string operateIP, string operateID)
 {
     if (!string.IsNullOrEmpty(icopath) && icopath.IndexOf(TempPath) >= 0)
     {
         if (icopath.IndexOf("?") > 0)
         {
             icopath = icopath.Substring(0, icopath.IndexOf("?"));
         }
         FileInfo file = new FileInfo(HttpContext.Current.Server.MapPath(icopath));
         icopath = FILEPATH + file.Name;
         if (file.Exists)
         {
             file.MoveTo(HttpContext.Current.Server.MapPath(icopath));
         }
     }
     var dal = new ProductsDAL();
     return dal.UpdateBrand(brandID, name, anotherName, countryCode, cityCode, status, icopath, remark, brandStyle, operateIP, operateID);
 }
Пример #2
0
 /// <summary>
 /// 编辑品牌
 /// </summary>
 /// <param name="brandID">ID</param>
 /// <param name="name">名称</param>
 /// <param name="anotherName">别称</param>
 /// <param name="countryCode">国家编码</param>
 /// <param name="cityCode">城市编码</param>
 /// <param name="status">状态</param>
 /// <param name="remark">备注</param>
 /// <param name="brandStyle"风格></param>
 /// <param name="operateIP">操作IP</param>
 /// <param name="operateID">操作人</param>
 /// <returns></returns>
 public bool UpdateBrand(string brandID, string name, string anotherName, string countryCode, string cityCode, int status, string remark, string brandStyle, string operateIP, string operateID)
 {
     var dal = new ProductsDAL();
     return dal.UpdateBrand(brandID, name, anotherName, countryCode, cityCode, status, remark, brandStyle, operateIP, operateID);
 }