Add  method FactoryRepository.cs