public TelexRelease UpdateObject(TelexRelease telexrelease) { if (!isValid(_validator.VUpdateObject(telexrelease, this))) { telexrelease = _repository.UpdateObject(telexrelease); } return(telexrelease); }
public TelexRelease CreateObject(TelexRelease telexrelease) { telexrelease.Errors = new Dictionary <String, String>(); if (!isValid(_validator.VCreateObject(telexrelease, this))) { telexrelease = _repository.CreateObject(telexrelease); } return(telexrelease); }
public TelexRelease CreateUpdateObject(TelexRelease telexrelease) { TelexRelease newtelexrelease = this.GetObjectByShipmentOrderId(telexrelease.ShipmentOrderId); if (newtelexrelease == null) { telexrelease = this.CreateObject(telexrelease); } else { telexrelease = this.UpdateObject(telexrelease); } return(telexrelease); }
public bool isValid(TelexRelease obj) { bool isValid = !obj.Errors.Any(); return(isValid); }
public TelexRelease SoftDeleteObject(TelexRelease telexrelease) { telexrelease = _repository.SoftDeleteObject(telexrelease); return(telexrelease); }
public TelexRelease VUpdateObject(TelexRelease telexRelease, ITelexReleaseService _telexReleaseService) { return(telexRelease); }