public bool UpdateBoard(BoardGroup board) { if (board == null) { throw new XinLuClubException(400, "board不能为null"); } if (string.IsNullOrEmpty(board.ID)) { throw new XinLuClubException(400, "boardID不能为空"); } TopicBLL bll = new TopicBLL(); return(bll.UpdateBoard(new BoardGroupUpdateForm { Entity = new BoardGroup { Name = board.Name, Description = board.Description, Enabled = board.Enabled, }, QueryForm = new BoardGroupQueryForm { ID = board.ID } })); }