Пример #1
0
 /// <summary>
 /// Obtiene un registro de LoteReimplante
 /// </summary>
 /// <param name="loteReimplanteID">Identificador de la LoteReimplante</param>
 /// <returns></returns>
 internal LoteReimplanteInfo ObtenerPorID(int loteReimplanteID)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxLoteReimplanteDAL.ObtenerParametrosPorID(loteReimplanteID);
         DataSet            ds     = Retrieve("LoteReimplante_ObtenerPorID", parameters);
         LoteReimplanteInfo result = null;
         if (ValidateDataSet(ds))
         {
             result = MapLoteReimplanteDAL.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);
     }
 }