public ActionResult EditVendorOrder(WarehouseVendorRequest warehouseVendorRequest)
        {
            var warehouseVendor = _context.WarehouseVendorRequests.Single(o => o.OID == warehouseVendorRequest.OID);

            warehouseVendor.OID      = warehouseVendorRequest.OID;
            warehouseVendor.Pid      = warehouseVendorRequest.Pid;
            warehouseVendor.Quantity = warehouseVendorRequest.Quantity;
            _context.SaveChanges();
            return(Redirect("~/Warehouse/WVendor"));
        }
        public ActionResult AddVendorOrder(WarehouseVendorRequest warehouseVendorRequest)
        {
            WarehouseVendorRequest WVRequest = new WarehouseVendorRequest();

            WVRequest = warehouseVendorRequest;
            try
            {
                _context.WarehouseVendorRequests.Add(WVRequest);
                _context.SaveChanges();
            }
            catch
            {
                return(View());
            }
            return(Redirect("~/Warehouse/WVendor"));
        }