예제 #1
0
        public async Task Update(int id, CityModel cityModel)
        {
            var city = _mapper.Map <City>(cityModel);

            _dbContext.City.Update(city);
            await _dbContext.SaveChangesAsync();
        }
예제 #2
0
        public async Task Update(int id, CountryModel countryModel)
        {
            var country = _mapper.Map <Country>(countryModel);

            _dbContext.Country.Update(country);
            await _dbContext.SaveChangesAsync();
        }