Example #1
0
        public void AddRole(AddRoleModel roleModel)
        {
            var role = new Role(roleModel.RoleName, roleModel.RoleDesc, roleModel.CreatedBy);

            _roleDal.AddRole(role);
        }
Example #2
0
 /// <summary>
 /// 添加用户角色
 /// </summary>
 /// <param name="RoleName">角色名称</param>
 public static void AddRole(string RoleName)
 {
     role.AddRole(RoleName);
 }
Example #3
0
        /// <summary>添加角色
        /// </summary>
        /// <param name="roleEntity"></param>
        /// <returns></returns>
        public bool AddRole(RoleEntity roleEntity)
        {
            RoleDal roleDal = new RoleDal();

            return(roleDal.AddRole(roleEntity));
        }