コード例 #1
0
        public async Task AddOrUpdate(UsaCountryInfo countryInfo, UsaCountryModel country)
        {
            Country dbCountry = await countryRepository.CountryByCodeAsync(country.Code);

            if (dbCountry == null)
            {
                await Add(countryInfo, country);
            }
            else
            {
                await Update(dbCountry, countryInfo);
            }
        }