void DisposeContextIfExists() { if (skillRepository != null) { context?.Database?.RollbackTransaction(); skillRepository.Dispose(); } }
void DisposeContextIfExists() { if (userRepository != null) { context.Database.RollbackTransaction(); userRepository?.Dispose(); skillRepository?.Dispose(); projectRepository?.Dispose(); locationRepository?.Dispose(); } }