Beispiel #1
0
        public ActionResult Get(int id)
        {
            AddressProcessor processor = new AddressProcessor();
            var results = processor.GetAddressesByClientId(id);

            return(Ok(results));
        }
Beispiel #2
0
        private void ProcessAddress()
        {
            _logger.LogInformation(DateTime.Now + " Start Address");
            var address = new AddressProcessor(_appConfig.FullPath);

            _address               = new List <AddressObject>();
            address.Complete      += AddressComplete;
            address.AddressParsed += AddressAddressParsed;
            Console.WriteLine();
            address.Run();
        }
        public void startProcess()
        {
            string           path    = "clientapp/FileIN/" + Id;
            AddressProcessor ap      = new AddressProcessor();
            FileCSV          fileCSV = new FileCSV();

            fileCSV.loadFile(path);
            fileCSV.outAddress = ap.processor(fileCSV.listAddres).ToList();
            fileCSV.saveFile("clientapp/FileOUT/" + Id);
            processCompilite = true;
            File.Delete(path);
        }