Beispiel #1
0
        public void SalvarAlteracoes()
        {
            while (AcoesPrevias.Any())
            {
                AcoesPrevias.Dequeue().Invoke();
            }

            _context.SaveChanges();

            while (AcoesPosteriores.Any())
            {
                AcoesPosteriores.Dequeue().Invoke();
            }
        }
Beispiel #2
0
        public async Task SalvarAlteracoes()
        {
            while (AcoesPrevias.Any())
            {
                AcoesPrevias.Dequeue().Invoke();
            }

            await _context.SaveChangesAsync();

            while (AcoesPosteriores.Any())
            {
                AcoesPosteriores.Dequeue().Invoke();
            }
        }