public JsonResult UpdateFromClass(FromClassModel model) { if (model != null) { result = classBLL.UpdateFromClass(model, out msg); } return(Json(new ResultClass(result, null, msg))); }
/// <summary> /// 新增从分类 /// </summary> /// <returns></returns> public bool AddFromClass(string SubClassValue, string ParentID, string userid, out string msg) { FromClassModel model = new FromClassModel { NumberID = CreateNumberClass.CreateNumber(), ValueName = SubClassValue, ParentID = ParentID, State = 1, UserID = userid }; return(FromDao.InsertFromClass(model, out msg)); }
/// <summary> /// 修改从分类 /// </summary> /// <returns></returns> public bool UpdateFromClass(FromClassModel model, out string msg) { return(FromDao.UpdateFromClass(model, out msg)); }