public List <Models.Foto> Catalogo()
        {
            OpenDbConn();

            DAL.Foto cFoto = new DAL.Foto(cDblib);
            return(cFoto.Catalogo());
        }
        public void Delete(int t932_idfoto)
        {
            OpenDbConn();

            try
            {
                DAL.Foto cFoto = new DAL.Foto(cDblib);

                cFoto.Delete(t932_idfoto);
            }
            catch (Exception ex)
            {
                throw new IBException(105, "Ocurrió un error al intentar borrar una foto.", ex);
            }
        }
        public int Insert(int idficepi, string t932_denominacion)
        {
            Guid methodOwnerID = new Guid("60CF1DBB-CFAD-47B6-95EF-763B87C15699");

            OpenDbConn();

            if (cDblib.Transaction.ownerID.Equals(new Guid()))
            {
                cDblib.beginTransaction(methodOwnerID);
            }

            try
            {
                DAL.Foto cFoto = new DAL.Foto(cDblib);

                int idFoto = cFoto.Insert(idficepi, t932_denominacion);

                //Finalizar transacción
                if (cDblib.Transaction.ownerID.Equals(methodOwnerID))
                {
                    cDblib.commitTransaction(methodOwnerID);
                }

                return(idFoto);
            }
            catch (Exception ex)
            {
                //rollback
                if (cDblib.Transaction.ownerID.Equals(new Guid()))
                {
                    cDblib.rollbackTransaction(methodOwnerID);
                }

                throw new IBException(105, "Ocurrió un error al intentar crear una foto.", ex);
            }
        }