public EntidadBase BuildObject(Dictionary <string, object> row) { var Tipo = new TipoTiquete { Id = GetIntValue(row, DB_COL_ID), Tipo = GetStringValue(row, DB_COL_TIPO), Precio = GetDecimalValue(row, DB_COL_PRECIO) }; return(Tipo); }
public void delete(TipoTiquete tipo) { try { _crudFactory.Delete(tipo); gestorAccion.delete(AccionPara); } catch (TRV_Exception ex) { throw ex; } }
public List <EntidadBase> BuildObjects(List <Dictionary <string, object> > lstRows) { var lstResults = new List <EntidadBase>(); foreach (var row in lstRows) { var tiquete = new TipoTiquete { Id = GetIntValue(row, DB_COL_ID), Tipo = GetStringValue(row, DB_COL_TIPO), Precio = GetDecimalValue(row, DB_COL_PRECIO) }; lstResults.Add(tiquete); } return(lstResults); }
public TipoTiquete RetrieveByName(string ptipo) { var tipo = new TipoTiquete(); try { tipo = _crudFactory.Retrieve <TipoTiquete>(ptipo); if (tipo != null) { return(tipo); } else { throw gestorEx.controlarExcepcion(new TRV_Exception(TRV_Exception.ExceptionCode.NoData)); } } catch (TRV_Exception ex) { throw ex; } }