public bool Update(Topic model) { try { if (model == null) { return(false); } var update = topicDAL.Update(model); return(update); } catch { return(false); } }
/// <summary> /// 更新单条数据 /// </summary> /// <param name="obj"></param> /// <returns></returns> public int Update(Topic obj) { return(dal.Update(obj)); }