예제 #1
0
        public long SaveOrder(OrderDto newDetails)
        {
            this.purchaseOrder = newDetails.DtoToEntity();
            var insertedPurchaseOrder = this._purchaseOrder.Insert(this.purchaseOrder);

            if (insertedPurchaseOrder.IsNull())
            {
                return(0);
            }

            return(insertedPurchaseOrder.PurchaseOrderID);
        }