예제 #1
0
 public ShipmentOrderRouting UpdateObject(ShipmentOrderRouting shipmentorderrouting)
 {
     if (!isValid(_validator.VUpdateObject(shipmentorderrouting, this)))
     {
         shipmentorderrouting = _repository.UpdateObject(shipmentorderrouting);
     }
     return(shipmentorderrouting);
 }
예제 #2
0
 public ShipmentOrderRouting CreateObject(ShipmentOrderRouting shipmentorderrouting)
 {
     shipmentorderrouting.Errors = new Dictionary <String, String>();
     if (!isValid(_validator.VCreateObject(shipmentorderrouting, this)))
     {
         shipmentorderrouting = _repository.CreateObject(shipmentorderrouting);
     }
     return(shipmentorderrouting);
 }
예제 #3
0
        public ShipmentOrderRouting CreateUpdateObject(ShipmentOrderRouting shipmentorderrouting)
        {
            ShipmentOrderRouting newshipmentorderrouting = this.GetObjectByShipmentOrderId(shipmentorderrouting.ShipmentOrderId);

            if (newshipmentorderrouting == null)
            {
                shipmentorderrouting = this.CreateObject(shipmentorderrouting);
            }
            else
            {
                shipmentorderrouting = this.UpdateObject(shipmentorderrouting);
            }
            return(shipmentorderrouting);
        }
        public bool isValid(ShipmentOrderRouting obj)
        {
            bool isValid = !obj.Errors.Any();

            return(isValid);
        }
 public ShipmentOrderRouting VUpdateObject(ShipmentOrderRouting shipmentorderrouting, IShipmentOrderRoutingService _shipmentorderroutingService)
 {
     return(shipmentorderrouting);
 }
예제 #6
0
 public ShipmentOrderRouting SoftDeleteObject(ShipmentOrderRouting shipmentorderrouting)
 {
     shipmentorderrouting = _repository.SoftDeleteObject(shipmentorderrouting);
     return(shipmentorderrouting);
 }