Beispiel #1
0
        private void ImportBankSites(string path)
        {
            var itemList = _excelService.GetItemsFromTemplate <BankSite>(path);

            foreach (var item in itemList)
            {
                _bankSitesRepository.Add(item);
            }
        }
Beispiel #2
0
        public BankSite Create()
        {
            var result = new BankSite();

            Console.WriteLine("Creating a bank site:");
            Console.WriteLine("Bank site Id:");
            result.Id = int.Parse(Console.ReadLine());
            Console.WriteLine("Bank site Name:");
            result.Name = Console.ReadLine();
            Console.WriteLine("Bank site address street:");
            result.AddressStreet = Console.ReadLine();
            Console.WriteLine("Bank site address street number:");
            result.AddressStreetNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("Bank site address city:");
            result.AddressCity = Console.ReadLine();
            Console.WriteLine("Bank site address postal code:");
            result.AddressPostalCode = Console.ReadLine();

            _bankSitesRepository.Add(result);

            return(result);
        }