public List <TipoVehiculoBE> ListarTipoVehiculo(TipoVehiculoBE entidad) { List <TipoVehiculoBE> Lista = null; try { using (IDbConnection db = new OracleConnection(CadenaConexion)) { string sp = sPackage + "USP_SEL_LISTA_TIPO_VEHICULO"; var p = new OracleDynamicParameters(); p.Add("pRefcursor", dbType: OracleDbType.RefCursor, direction: ParameterDirection.Output); Lista = db.Query <TipoVehiculoBE>(sp, p, commandType: CommandType.StoredProcedure).ToList(); } } catch (Exception ex) { Log.Error(ex); } return(Lista); }
public static List <TipoVehiculoBE> ListarTipoVehiculo(TipoVehiculoBE entidad) { return(tipoVehiculo.ListarTipoVehiculo(entidad)); }