本文整理汇总了C#中CloudSalesDAL.ProductsDAL.UpdateBrand方法的典型用法代码示例。如果您正苦于以下问题:C# ProductsDAL.UpdateBrand方法的具体用法?C# ProductsDAL.UpdateBrand怎么用?C# ProductsDAL.UpdateBrand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CloudSalesDAL.ProductsDAL
的用法示例。
在下文中一共展示了ProductsDAL.UpdateBrand方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateBrand
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: UpdateBrand
/// <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);
}