Example #1
0
        public static void Patch(this DeckModel deckModel, Deck deck, StatusModel statusModel, UserModel user)
        {
            if (deckModel == null)
            {
                return;
            }
            deckModel.Name        = deck.Name;
            deckModel.ExportTiles = deck.ExportTiles;
            deckModel.GeneratePdf = deck.GeneratePdf;

            if (statusModel != null)
            {
                deckModel.Status = statusModel;
            }
            deckModel.PatchBase(user);
        }