“New transaction is not allowed because there are other threads running in the session”

 

REVISAR ESTO:

1. You’re calling database.SaveChanges() inside of a foreach loop.

2. You’re iterating over and modifying a collection that hasn’t been converted into a memory-based instance collection (by using ToList() or AsEnumerable()).

J

Anuncios