static XElement GetHtmlScrumBoardSection(ScrumSprint sprint, ScrumState state) { return new XElement( "div", new XAttribute("class", "scrum_board_section"), new XElement("h2", new XAttribute("id", sprint.States.IndexOf(state)), state.Name + " issues"), sprint.Issues.Where(i => state == sprint.GetStateOfIssue(i)).Select(GetHtmlScrumBoardIssue)); }
static IEnumerable<XElement> GetHtmlScrumBoardIssues(ScrumSprint sprint, ScrumState state) { return sprint.Issues.Where(i => state == sprint.GetStateOfIssue(i)).Select(GetHtmlScrumBoardIssue); }