public static void AddNewOrderItem(this StoreOrder storeOrder, CartItemViewModel model, DunkeyContext ctx) { try { Order_Items orderItem = new Order_Items(); orderItem.SetOrderItem(model, ctx); storeOrder.Order_Items.Add(orderItem); } catch (Exception ex) { DunkeyDelivery.Utility.LogError(ex); } }
public static void AddNewOrderItem(this StoreOrder storeOrder, CartItemViewModel model) { try { Order_Items orderItem = new Order_Items(); orderItem.SetOrderItem(model); storeOrder.Order_Items.Add(orderItem); } catch (Exception) { throw; } }