public ShipmentOrderRouting UpdateObject(ShipmentOrderRouting shipmentorderrouting) { if (!isValid(_validator.VUpdateObject(shipmentorderrouting, this))) { shipmentorderrouting = _repository.UpdateObject(shipmentorderrouting); } return(shipmentorderrouting); }
public ShipmentOrderRouting CreateObject(ShipmentOrderRouting shipmentorderrouting) { shipmentorderrouting.Errors = new Dictionary <String, String>(); if (!isValid(_validator.VCreateObject(shipmentorderrouting, this))) { shipmentorderrouting = _repository.CreateObject(shipmentorderrouting); } return(shipmentorderrouting); }
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); }
public ShipmentOrderRouting SoftDeleteObject(ShipmentOrderRouting shipmentorderrouting) { shipmentorderrouting = _repository.SoftDeleteObject(shipmentorderrouting); return(shipmentorderrouting); }