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