/// <summary> /// Obtiene un Jaula por Id /// </summary> /// <returns></returns> internal JaulaInfo ObtenerPorID(int id) { JaulaInfo result = null; try { Logger.Info(); Dictionary <string, object> parameters = AuxJaulaDAL.ObtenerParametroPorID(id); DataSet ds = Retrieve("Jaula_ObtenerPorID", parameters); if (ValidateDataSet(ds)) { result = MapJaulaDAL.ObtenerPorID(ds); } } 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); } return(result); }