Пример #1
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public bool Delete(int id)
 {
     if (dal.Delete(id))
     {
         //删除缓存
         ClearCache(id);
         //返回
         return(true);
     }
     return(false);
 }
Пример #2
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public void Delete(int id)
 {
     dal.Delete(id);
 }
Пример #3
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public bool Delete(int id)
 {
     return(dal.Delete(id));
 }