示例#1
0
        /// <summary>
        /// 重写新增方法
        /// 添加人:周 鹏
        /// 添加时间:2014-03-28
        /// </summary>
        /// <param name="model">菜单实体类</param>
        /// <returns></returns>
        public override ComMenuEntity Add(ComMenuEntity model)
        {
            if (string.IsNullOrEmpty(model.ParentMenuId))
            {
                model.ParentMenuId = "0000";
            }
            var menuId = new ComMenuDal().GetMenuMaxId(model.ParentMenuId);

            model.Id = menuId;
            return(base.Add(model));
        }
示例#2
0
 public ComMenuBll()
 {
     BaseDal = new ComMenuDal();
 }