public async Task <PurchaseOrder> SavePurchaseOrder(PurchaseOrder pPurchaseOrder) { if (pPurchaseOrder.Id == Guid.Empty) { return(await mAsyncCLient.AddPurchaseOrderAsync(pPurchaseOrder)); } return(await mAsyncCLient.EditPurchaseOrderAsync(pPurchaseOrder)); }
public PurchaseOrder EditPurchaseOrder(PurchaseOrder pPurchaseOrder) => mBlue10Async.EditPurchaseOrderAsync(pPurchaseOrder).Sync();