示例#1
0
 /// <summary>
 /// Obtiene un registro de IndicadorProductoCalidad
 /// </summary>
 /// <param name="indicadorProductoCalidadID">Identificador de la IndicadorProductoCalidad</param>
 /// <returns></returns>
 public IndicadorProductoCalidadInfo ObtenerPorID(int indicadorProductoCalidadID)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxIndicadorProductoCalidadDAL.ObtenerParametrosPorID(indicadorProductoCalidadID);
         DataSet ds = Retrieve("IndicadorProductoCalidad_ObtenerPorID", parameters);
         IndicadorProductoCalidadInfo result = null;
         if (ValidateDataSet(ds))
         {
             result = MapIndicadorProductoCalidadDAL.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);
     }
 }