public static ListShow Convert(BoardList bl, bool isEditable) { return new ListShow { IsEditable = isEditable, Id = bl.Id, Name = bl.Name, Cards = bl.Cards.Select(card => Convert(card,isEditable)) }; }
public void AddList(int id, string listName) { BoardList toAdd = new BoardList(id, listName); toAdd.Cards = new IndexedList<BoardCard>(); Lists.AddToTail(toAdd); }