public static CardTable ToCardTable(this CardModel model, Guid?deckId = null) { var row = model.ConvertTo <CardTable>(); row.DeckId = model.Deck?.DeckId ?? deckId.GetValueOrDefault(); return(row); }
public static CardDto ToCardDto(this CardModel model) { var dto = model.ConvertTo <CardDto>(); return(dto); }