Example #1
0
 public override List <Card> Execute(TrelloModel model)
 {
     return(model.Boards.Values
            .SelectMany(b => b.Columns)
            .Single(c => c.Id == ColumnId)
            .Cards);
 }
Example #2
0
 public override List <BoardView> Execute(TrelloModel model)
 {
     return(model
            .Boards
            .Values
            .OrderBy(board => board.Name, StringComparer.InvariantCultureIgnoreCase)
            .Select(board => new BoardView(board))
            .ToList());
 }
Example #3
0
 public override List <ColumnView> Execute(TrelloModel model)
 {
     return(model.Boards[BoardId].Columns
            .Select(c => new ColumnView(c)).ToList());
 }