|
|
|
@ -17,14 +17,12 @@ namespace Gremlin.Models
|
|
|
|
|
|
|
|
|
|
|
|
public static bool CreateNewCustomDescription(CustomDescriptionViewModel customDescriptionVM, LineItemViewModel lineItemVM)
|
|
|
|
public static bool CreateNewCustomDescription(CustomDescriptionViewModel customDescriptionVM, LineItemViewModel lineItemVM)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CustomDescription customDescription = new();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (lineItemVM.OptionNumber == null)
|
|
|
|
if (lineItemVM.OptionNumber == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lineItemVM.OptionNumber = "(NULL)";
|
|
|
|
lineItemVM.OptionNumber = "(NULL)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
using (GremlinContext gremlinContext = new())
|
|
|
|
CustomDescription customDescription = new()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AccountId = 1,
|
|
|
|
AccountId = 1,
|
|
|
|
ProductNumber = lineItemVM.ProductNumber,
|
|
|
|
ProductNumber = lineItemVM.ProductNumber,
|
|
|
|
|