Exemplo n.º 1
0
 public static int AddAttribute(AttributeInfo attribute)
 {
     attribute.ID = dal.AddAttribute(attribute);
     AttributeClassBLL.ChangeAttributeClassCount(attribute.AttributeClassID, ChangeAction.Plus);
     CacheHelper.Remove(cacheKey);
     return(attribute.ID);
 }
Exemplo n.º 2
0
 public static void DeleteAttribute(string strID)
 {
     AttributeClassBLL.ChangeAttributeClassCountByGeneral(strID, ChangeAction.Minus);
     dal.DeleteAttribute(strID);
     CacheHelper.Remove(cacheKey);
 }