public int guardarCierre(CierreEfectivoVO cierre)
        {
            int rows = 0;
            ITransaction tx = null;

            try
            {
                ISession session = ConnectionHelper.getCurrentSession(Utilidades.Utilidades.configExpo);
                tx = session.BeginTransaction();

                if (cierre.IdCierre == 0)
                {
                    session.Save(cierre);
                }
                else
                {
                    session.Update(cierre);
                }

                tx.Commit();
                rows++;

                ConnectionHelper.CloseSession();

                return rows;

            }
            catch (System.Exception ex)
            {
                ConnectionHelper.CloseSession();
                throw new EstacionDBException("Error al guardar la información de la tabla cierre efectivo.", ex);
            }
        }
        /// <summary>
        /// Guarda o actualiza un cierre de efectivo.
        /// </summary>
        /// <param name="dto">Objeto DTO con la información del cierre de venta.</param>
        /// <returns></returns>
        public int guardarCierre(CierreEfectivoDTO dto)
        {
            try
            {
                CierreEfectivoVO vo = new CierreEfectivoVO();
                vo.Efectivo = dto.Efectivo;
                vo.Egresos = dto.Egresos;
                vo.Estado = dto.Estado;
                vo.Fecha = dto.Fecha;
                vo.IdCierre = 0;

                return cierreEfectivoDAO.guardarCierre(vo);
            }
            catch (EstacionDBException ex)
            {
                throw new CierreException("No se pudo obtener la información del cierre de efectivo", ex);
            }
        }