Example #1
0
 public void UpdateTren(Tren tren)
 {
     if (!string.IsNullOrEmpty(tren.Matricula))
     {
         _crudFactory.Update(tren);
         gestorAccion.update(AccionPara);
     }
     else
     {
         //throw gestor.ControlarExcepcion(new ErpException(ErpException.ExceptionCode.CedulaNotNull));
     }
 }
Example #2
0
 public void update(TipoTiquete tipo)
 {
     try
     {
         _crudFactory.Update(tipo);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public void update(Empresa empresa)
 {
     try
     {
         _crudFactory.Update(empresa);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 public void UpdateEstacion(Estacion estacion)
 {
     try
     {
         _crudFactory.Update(estacion);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #5
0
 public void UpdateLinea(Linea linea)
 {
     try
     {
         _crudFactory.Update(linea);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #6
0
 public void Update(Permiso permiso)
 {
     try
     {
         _crudFactory.Update(permiso);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #7
0
 public void update(Convenio convenio)
 {
     try
     {
         _crudFactory.Update(convenio);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Example #8
0
 public void Update(Incidencia incidencia)
 {
     if (!string.IsNullOrEmpty(Convert.ToString(incidencia.Codigo)))
     {
         _crudFactory.Update(incidencia);
         gestorAccion.update(AccionPara);
     }
     else
     {
         throw new Exception();
     }
 }
Example #9
0
 public void Update(Cliente cliente)
 {
     if (!string.IsNullOrEmpty(Convert.ToString(cliente.Cedula)))
     {
         _crudFactory.Update(cliente);
         gestorAccion.update(AccionPara);
     }
     else
     {
         throw new Exception();
     }
 }
Example #10
0
 public void Update(Usuario usuario)
 {
     try
     {
         HashedPass         = GetMD5(usuario.Contrasena);
         usuario.Contrasena = HashedPass;
         _crudFactory.Update(usuario);
         gestorAccion.update(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }