public static void AddOrUpdate()
        {
            Console.WriteLine("Insert an Id");
            int id = Convert.ToInt32(Console.ReadLine());

            Console.Clear();
            Console.WriteLine("Insert a company name");
            string name = Console.ReadLine();

            Console.Clear();
            CompanyRepository.AddOrUpdate(id, name);
            Console.WriteLine("Stored procedure executed!");
        }
Пример #2
0
        private async Task SynchronizeCompanies()
        {
            var companies = await CompanyService.GetUnsynced(AppSettings.LastSyncDate);

            CompanyRepository.AddOrUpdate(companies);
        }