Exemplo n.º 1
0
        public IActionResult FinishedShipment(MonitorVModel shipment)
        {
            //TODO: Validar si todos los pallets fueron embarcados
            var finishd = _contextOrderDetail.GetItemByExpression(x => x.embarque.Equals(shipment.Embarque) && x.Leido == false);

            if (finishd == null)
            {
                FinishShipment(shipment.Embarque);
                return(RedirectToAction("Index"));
            }
            return(RedirectToAction("Monitor", shipment));
        }