Ejemplo n.º 1
0
        public ActionResult Edit(long id)
        {
            OutboundCarrierManifestsPost outboundcarriermanifests = _outboundcarriermanifestsService.GetPost(id);

            if (outboundcarriermanifests == null)
            {
                return(NotFound());
            }
            ViewBag.ixCarrier  = new SelectList(_outboundcarriermanifestsService.selectCarriers().Select(x => new { x.ixCarrier, x.sCarrier }), "ixCarrier", "sCarrier", outboundcarriermanifests.ixCarrier);
            ViewBag.ixFacility = new SelectList(_outboundcarriermanifestsService.selectFacilities().Select(x => new { x.ixFacility, x.sFacility }), "ixFacility", "sFacility", outboundcarriermanifests.ixFacility);
            ViewBag.ixPickupInventoryLocation = new SelectList(_outboundcarriermanifestsService.selectInventoryLocationsNullable().Select(x => new { ixInventoryLocation = x.Key, sInventoryLocation = x.Value }), "ixInventoryLocation", "sInventoryLocation", outboundcarriermanifests.ixPickupInventoryLocation);
            ViewBag.ixStatus = new SelectList(_outboundcarriermanifestsService.selectStatuses().Select(x => new { x.ixStatus, x.sStatus }), "ixStatus", "sStatus", outboundcarriermanifests.ixStatus);

            return(View(outboundcarriermanifests));
        }