예제 #1
0
 public TelexRelease UpdateObject(TelexRelease telexrelease)
 {
     if (!isValid(_validator.VUpdateObject(telexrelease, this)))
     {
         telexrelease = _repository.UpdateObject(telexrelease);
     }
     return(telexrelease);
 }
예제 #2
0
 public TelexRelease CreateObject(TelexRelease telexrelease)
 {
     telexrelease.Errors = new Dictionary <String, String>();
     if (!isValid(_validator.VCreateObject(telexrelease, this)))
     {
         telexrelease = _repository.CreateObject(telexrelease);
     }
     return(telexrelease);
 }
예제 #3
0
        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);
        }
예제 #4
0
        public bool isValid(TelexRelease obj)
        {
            bool isValid = !obj.Errors.Any();

            return(isValid);
        }
예제 #5
0
 public TelexRelease SoftDeleteObject(TelexRelease telexrelease)
 {
     telexrelease = _repository.SoftDeleteObject(telexrelease);
     return(telexrelease);
 }
예제 #6
0
 public TelexRelease VUpdateObject(TelexRelease telexRelease, ITelexReleaseService _telexReleaseService)
 {
     return(telexRelease);
 }