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); }