Beispiel #1
0
        public CardView GetCardViewById(long cardId)
        {
            CardView cardView = Lanes.Where(x => x.Cards != null).SelectMany(l => l.Cards).FirstOrDefault(c => c.Id == cardId);

            if (cardView == null)
            {
                cardView = Backlog.Where(x => x.Cards != null).SelectMany(lane => lane.Cards).FirstOrDefault(c => c.Id == cardId);
            }
            if (cardView == null)
            {
                cardView = Archive.Where(x => x.Cards != null).SelectMany(lane => lane.Cards).FirstOrDefault(c => c.Id == cardId);
            }

            return(cardView);
        }