/// <summary> /// 更新数据 /// </summary> /// <param name='model'>实体</param> /// <returns>bool</returns> public bool Update(System_Menu model) { bool result = false; var e = new ModelExceptions(); int _rseult = instance.Update(model); if (_rseult > 0) { result = true; } return(result); }
public bool AddUpdatePlanObject(System_Menu info) { int result = 0; if (info != null) { if (info.Menu_ID.Equals(0)) { result = instance.Add(info); } else { result = instance.Update(info); } } return(result > 0 ? true : false); }