public async Task <List <TM_COMBUSTIBLE> > GetCombo(TM_COMBUSTIBLE input)
 {
     try
     {
         return(await this._combustibleRepository.GetCombo(input));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public async Task <List <TM_COMBUSTIBLE> > GetCombo(TM_COMBUSTIBLE input)
        {
            using (var connection = _connectionFactory.GetConnectionSIROS())
            {
                var dyParam = new OracleDynamicParameters();
                dyParam.Add("p_cursor_", OracleDbType.RefCursor, ParameterDirection.Output);
                var query  = _connectionFactory.GetQueryForSIROS("PKG_COMBUSTIBLE.SP_GetListaComboCombustible");
                var result = await connection.QueryAsync <TM_COMBUSTIBLE>(query, param : dyParam, commandType : CommandType.StoredProcedure);

                return(result.AsList());
            }
        }
Example #3
0
 public Task <TM_COMBUSTIBLE> Update(TM_COMBUSTIBLE input)
 {
     throw new NotImplementedException();
 }