Example #1
0
 public bool Delete(long id)
 {
     try
     {
         var update = topicDAL.Delete(id);
         return(update);
     }
     catch
     {
         return(false);
     }
 }
Example #2
0
 /// <summary>
 /// 删除单条数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public int Delete(Topic obj)
 {
     return(dal.Delete(obj));
 }