Exemplo n.º 1
0
 public cCuentasPagar BuscarPorID(Int64 ID)
 {
     //Buscamos un movimiento especifico por el ID de la base de datos
     try
     {
         return(CuentaPagarDA.BuscarPorID(ID));
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
Exemplo n.º 2
0
        public cCuentasPagar BuscarPorID(String DocumentoID)
        {
            //Buscamos un cargo general por el documento que lo identifica
            try
            {
                cCuentasPagar Cuenta = CuentaPagarDA.BuscarPorID(DocumentoID);
                //Int64 Codigo; //Variable de comprobacion

                //Validamos que retornamos un valor no nulo
                if (Cuenta.Codigo == 0)
                {
                    //Retornamos un error si no existe resultado
                    throw new Exception("El documento seleccionada no existe, favor verificar");
                }
                else
                {
                    return(Cuenta);
                }
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }