Beispiel #1
0
        public int CreatePurchaseOrderv2(DTO.v2.PurchaseOrder purchaseOrder)
        {
            int retval = -1;

            if (_controller.Submit(purchaseOrder))
            {
                retval = purchaseOrder.PurchaseOrderId;
            }
            else
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.BadRequest;
            }
            return(retval);
        }
Beispiel #2
0
 public bool Updatev2(string id, DTO.v2.PurchaseOrder purchaseOrder)
 {
     purchaseOrder.PurchaseOrderId = int.Parse(id);
     return(_controller.Submit(purchaseOrder));
 }
 public bool SubmitPO(DTO.v2.PurchaseOrder purchaseOrder)
 {
     return(_controller.Submit(purchaseOrder));
 }