Remove code that disposes the UnitOfWork object which has a ref of DbContext. DbContext already manages the it's connection.