コード例 #1
0
        public static bool MakeFiles()
        {
            IRepository <Client>  clientRepository  = new ClientRepository();
            IRepository <Import>  importRepository  = new ImportRepository();
            IRepository <Product> productRepository = new ProductRepository();
            IRepository <User>    userRepository    = new UserRepository();

            var clientsList  = clientRepository.FindAll();
            var importsList  = importRepository.FindAll();
            var productsList = productRepository.FindAll();
            var usersList    = userRepository.FindAll();

            return(makeClienstFile(clientsList) &&
                   makeImportsFile(importsList) &&
                   makeProductsFile(productsList) &&
                   makeUsersFile(usersList));
        }