private void cerrarBoleta(CelulaMiembroAsistencia entidad)
        {
            IglesiaEntities     contexto = new IglesiaEntities();
            ConsolidacionBoleta boleta   = (from o in contexto.ConsolidacionBoleta where o.Email == entidad.Miembro.Email select o).SingleOrDefault();

            if (boleta != null && !ConsolidacionBoleta.Estatus.Cerrada(boleta.BoletaEstatusId))
            {
                boleta.BoletaEstatusId = ConsolidacionBoleta.Estatus.ASISTE_A_CELULA.Key;
                contexto.SaveChanges(System.Data.Objects.SaveOptions.DetectChangesBeforeSave, true);
            }
        }
        private void validarEntidad(System.Data.Objects.ObjectStateEntry entry)
        {
            CelulaMiembroAsistencia entidad = (CelulaMiembroAsistencia)entry.Entity;

            cerrarBoleta(entidad);
        }