public void delete(TipoTiquete tipo) { try { _crudFactory.Delete(tipo); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public void DeleteVagon(Vagon vagon) { if (!string.IsNullOrEmpty(vagon.IdVagon + "")) { _crudFactory.Delete(vagon); gestorAccion.delete(AccionPara); } else { //throw gestor.ControlarExcepcion(new ErpException(ErpException.ExceptionCode.NoHaSeleccionadoCliente)); } }
public void DeleteEstacion(Estacion estacion) { try { _crudFactory.Delete(estacion); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public void DeleteLinea(Linea linea) { try { _crudFactory.Delete(linea); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public void delete(Convenio convenio) { try { _crudFactory.Delete(convenio); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public void Delete(Incidencia incidencia) { if (!string.IsNullOrEmpty(Convert.ToString(incidencia.Codigo))) { _crudFactory.Delete(incidencia); gestorAccion.delete(AccionPara); } else { throw new Exception(); } }
public void Delete(Cliente cliente) { if (!string.IsNullOrEmpty(Convert.ToString(cliente.Cedula))) { _crudFactory.Delete(cliente); gestorAccion.delete(AccionPara); } else { throw new Exception(); } }
public void delete(Usuario usuario) { try { _crudFactory.Delete(usuario); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public void Delete(Permiso permiso) { try { _crudFactory.Delete(permiso); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } catch (SqlException sqlEx) { if (sqlEx.Number == 547) //2627, es para llaves duplicadas. { throw gestorEx.controlarExcepcion(new TRV_Exception(TRV_Exception.ExceptionCode.PermisosConPuesto)); } } catch (Exception e) { throw e; } }