public ShipmentOrder VOBL(ShipmentOrder shipmentorder, IShipmentOrderService _shipmentorderService, IContactService _contactService, ICityLocationService _cityService) { if (shipmentorder.OBLStatus != "P") { if (shipmentorder.OBLCollectId == null) { shipmentorder.Errors.Add("Generic", "Invalid Freight Collect At"); } else if (_cityService.GetObjectById(shipmentorder.OBLCollectId.Value) == null) { shipmentorder.Errors.Add("Generic", "Invalid Freight Collect At"); } } return(shipmentorder); }
public ShipmentOrder VCreateObject(ShipmentOrder shipmentorder, IShipmentOrderService _shipmentorderService) { return(shipmentorder); }