예제 #1
0
 /// <summary>
 /// 删除二/三级中父类别为指定父类别的所有类别(删除二级类别时,需要先删除这些二级类别对应的所有三级类别)
 /// </summary>
 /// <param name="level">类别等级(2或3)</param>
 /// <param name="parentTypeID">ParentTypeID</param>
 /// <returns>bool</returns>
 public static bool DeleteType(int level, string parentTypeID)
 {
     try
     {
         return(DAL_GoodsType.DeleteType(level, parentTypeID));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
예제 #2
0
 /// <summary>
 /// 删除一个二/三级类别(删除二级类别需要先删除其三级类别)
 /// </summary>
 /// <param name="typeID">TypeID</param>
 /// <param name="level">类别等级(2或3)</param>
 /// <returns>bool</returns>
 public static bool DeleteType(string typeID, int level)
 {
     try
     {
         return(DAL_GoodsType.DeleteType(typeID, level));
     }
     catch (Exception e)
     {
         throw e;
     }
 }