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!"); }
private async Task SynchronizeCompanies() { var companies = await CompanyService.GetUnsynced(AppSettings.LastSyncDate); CompanyRepository.AddOrUpdate(companies); }