Ejemplo n.º 1
0
 internal void createInterfaceContableDetalle(NOMINA nomina, EXACTUS_CABECERA_SIS cabecera, int asiento)
 {
     try
     {
         using (var db = new DISEntities())
         {
             var respuesta = db.pa_create_cuenta_42_26_sis(cabecera.IDE_EXACTUS_CABECERA_SIS, cabecera.ASIENTO, nomina.ArchivoId, asiento).FirstOrDefault();
             if (respuesta.Equals("ERROR"))
             {
                 throw(new ArgumentException("Ocurrió un error cuando intentaba buscar el tipo de cambio."));
             }
         }
     }
     catch (System.Exception ex)
     {
         throw(new System.Exception(ex.Message));
     }
 }