From 85b69dab64d4bc9925e67bb87e84dbed34cbb535 Mon Sep 17 00:00:00 2001 From: DJh2o2 Date: Fri, 20 May 2022 09:37:09 +0200 Subject: [PATCH] resolve errors --- Gremlin/MVVM/Models/CustomDescriptionModel.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Gremlin/MVVM/Models/CustomDescriptionModel.cs b/Gremlin/MVVM/Models/CustomDescriptionModel.cs index a6b726e..f065936 100644 --- a/Gremlin/MVVM/Models/CustomDescriptionModel.cs +++ b/Gremlin/MVVM/Models/CustomDescriptionModel.cs @@ -17,14 +17,12 @@ namespace Gremlin.Models public static bool CreateNewCustomDescription(CustomDescriptionViewModel customDescriptionVM, LineItemViewModel lineItemVM) { - CustomDescription customDescription = new(); - if (lineItemVM.OptionNumber == null) { lineItemVM.OptionNumber = "(NULL)"; } - using (GremlinContext gremlinContext = new()) + CustomDescription customDescription = new() { AccountId = 1, ProductNumber = lineItemVM.ProductNumber,