public CardDto[] GetProjectCards(int projectId) { return(Repository .GetProjectCards(projectId) .Select(giraTask => CardDto.BuildFrom(giraTask)) .ToArray()); }
public static CardCycleTimeNodeDto BuildFrom(CardCycleTimeNode node) { return(new CardCycleTimeNodeDto { Duration = node.Duration, Cards = node.Cards .Select(card => CardDto.BuildFrom(card)) .ToArray() }); }