Exemplo n.º 1
0
 public override List <Card> Execute(TrelloModel model)
 {
     return(model.Boards.Values
            .SelectMany(b => b.Columns)
            .Single(c => c.Id == ColumnId)
            .Cards);
 }
Exemplo n.º 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());
 }
Exemplo n.º 3
0
 public override List <ColumnView> Execute(TrelloModel model)
 {
     return(model.Boards[BoardId].Columns
            .Select(c => new ColumnView(c)).ToList());
 }