public void AddRole(AddRoleModel roleModel) { var role = new Role(roleModel.RoleName, roleModel.RoleDesc, roleModel.CreatedBy); _roleDal.AddRole(role); }
/// <summary> /// 添加用户角色 /// </summary> /// <param name="RoleName">角色名称</param> public static void AddRole(string RoleName) { role.AddRole(RoleName); }
/// <summary>添加角色 /// </summary> /// <param name="roleEntity"></param> /// <returns></returns> public bool AddRole(RoleEntity roleEntity) { RoleDal roleDal = new RoleDal(); return(roleDal.AddRole(roleEntity)); }