Exemplo n.º 1
0
        public Task <PurchaseOrder> NewPurchaseOrder(PurchaseOrder.INewPurchaseOrderBuilder newPurchaseOrderBuilder)
        {
            var entity = newPurchaseOrderBuilder.Build();

            if (!_notificationHandler.HasNotification())
            {
                _manager.List.Add(entity);
            }

            return(entity.AsTask());
        }
Exemplo n.º 2
0
        public async Task <PurchaseOrder> NewPurchaseOrder(PurchaseOrder.INewPurchaseOrderBuilder newPurchaseOrderBuilder)
        {
            var purchaseOrder = newPurchaseOrderBuilder.Build();

            if (Notification.HasNotification())
            {
                return(purchaseOrder);
            }

            purchaseOrder = await _repository.Insert(purchaseOrder);

            return(purchaseOrder);
        }