public bool AddRoleModel(UserRole role) { SysRoleModel roleModel = bllRole.GetModel(role.RoleName); if (roleModel != null) { bllRole.Delete(role.RoleName); } roleModel = new SysRoleModel(); roleModel.SysRole_Name = role.RoleName; roleModel.SysRole_Desc = role.RoleDesc; roleModel.SysRole_Level = role.RoleLevel; roleModel.SysRole_Remark = role.RoleRemark; return(bllRole.Add(roleModel)); }
public bool DeleteRole(string roleName) { return(bllRole.Delete(roleName)); }