Ejemplo n.º 1
0
 internal ImportarSaldosSOFOMInfo CreditoSOFOM_ObtenerPorID(int creditoID)
 {
     try
     {
         Logger.Info();
         var dal = new ImportarSaldosSOFOMDAL();
         return(dal.CreditoSOFOM_ObtenerPorID(creditoID));
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Ejemplo n.º 2
0
 internal List <ImportarSaldosSOFOMInfo> Guardar(List <ImportarSaldosSOFOMInfo> info)
 {
     try
     {
         Logger.Info();
         var result    = new List <ImportarSaldosSOFOMInfo>();
         var saldosDAL = new ImportarSaldosSOFOMDAL();
         using (var scope = new TransactionScope())
         {
             result = saldosDAL.Guardar(info);
             scope.Complete();
         }
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }