示例#1
0
 public JsonResult UpdateFromClass(FromClassModel model)
 {
     if (model != null)
     {
         result = classBLL.UpdateFromClass(model, out msg);
     }
     return(Json(new ResultClass(result, null, msg)));
 }
示例#2
0
        /// <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));
        }
示例#3
0
 /// <summary>
 /// 修改从分类
 /// </summary>
 /// <returns></returns>
 public bool UpdateFromClass(FromClassModel model, out string msg)
 {
     return(FromDao.UpdateFromClass(model, out msg));
 }