public static DeckModel ToModel(this Deck deck) { if (deck == null) return null; var model = new DeckModel(); model.InjectFrom(deck); return model; }
public static DeckModel ToModel(this Deck deck) { if (deck == null) { return(null); } var model = new DeckModel(); model.InjectFrom(deck); return(model); }
public static void MapFrom(this DeckModel target, Deck source) { target.InjectFrom(source); }