Exemple #1
0
        public PurchaseOrderHeader CreateNewPurchaseOrder([ContributedAction("Purchase Orders")] Vendor vendor)
        {
            var purchaseOrderHeader = new PurchaseOrderHeader();

            purchaseOrderHeader.Vendor = vendor;
            return(purchaseOrderHeader);
        }
Exemple #2
0
        public static (PurchaseOrderHeader, PurchaseOrderHeader) CreateNewPurchaseOrder2()
        {
            //TODO: required properties
            var poh = new PurchaseOrderHeader();

            poh.OrderPlacedBy = null;
            return(DisplayAndPersist(poh));
        }
Exemple #3
0
        public static (PurchaseOrderHeader, PurchaseOrderHeader) CreateNewPurchaseOrder(
            [ContributedAction("Purchase Orders")] Vendor vendor)
        {
            //TODO: set up with all required fields
            var poh = new PurchaseOrderHeader();

            poh.Vendor   = vendor;
            poh.ShipDate = DateTime.Today;
            return(DisplayAndPersist(poh));
        }