/// <summary> /// Obtiene un registro de Trampa /// </summary> /// <param name="trampaID">Identificador de la Trampa</param> /// <returns></returns> internal TrampaInfo ObtenerPorID(int trampaID) { try { Logger.Info(); Dictionary <string, object> parameters = AuxTrampaDAL.ObtenerParametrosPorID(trampaID); DataSet ds = Retrieve("Trampa_ObtenerPorID", parameters); TrampaInfo result = null; if (ValidateDataSet(ds)) { result = MapTrampaDAL.ObtenerPorID(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }